aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/cond-expr5.c
blob: 6c1e1c34d0daa5a5b25b8290a9e6f1a05add2675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int foo(int p, int q, int a)
{
	if (p)
		a = 0;
	if (q)
		a = 1;

	return a;
}

/*
 * check-name: cond-expr5
 * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
 * check-output-ignore
 * check-output-excludes: load\\.
 * check-output-excludes: store\\.
 * check-output-pattern(2): phi\\.
 */