aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/cond-expr5.c
blob: beef8f258cd97669d3d164ba9424caee7c415e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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\\.
 * check-output-pattern(4): phisrc\\.
 */