foo(int a,int b)1 int foo(int a, int b)
2 {
3 	int x;
4 	int i;
5 
6 	if (a)
7 		i = 0;
8 	else
9 		i = 1;
10 
11 	x = 0;
12 	if (b)
13 		x = i;
14 	return x;
15 }
16 
17 /*
18  * check-name: broken-phi02
19  * check-description:
20  *	This is an indirect test to check correctness of phi-node placement.
21  *	The misplaced phi-node for 'i' (not at the meet point but where 'i'
22  *	is used) causes a missed select-conversion at later stage.
23  *
24  * check-command: test-linearize -Wno-decl $file
25  * check-output-ignore
26  * check-output-contains: select\\.
27  */
28