aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/kill-phi-node.c
blob: cff62b6493412ede4ebf910b0808e8bf9bc91408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
void foo(int a, int *b, unsigned int g);
void foo(int a, int *b, unsigned int g)
{
	int d = 0;

	if ((!a || *b) && g)
		d = 16;
	else
		d = 8;
}

int bar(void);
int bar(void)
{
	int i;
	for (i = 0; i; i--)
		;
	return 0;
}

/*
 * check-name: kill-phi-node
 * check-command: test-linearize $file
 *
 * check-output-ignore
 * check-output-excludes: phisrc\\.
 */