aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/kill-insert-branch.c
blob: e59b5bbcda45e3338d2f1ddd6bd861f7fbfc2f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
void foo(int a)
{
	int b = 1;
	if (a)
		b++;
	if (b)
		;
}

void bar(int a)
{
	if (a ? 1 : 2)
		;
}

/*
 * check-name: kill insert-branch
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: select\\.
 */