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