aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/global-noalias.c
blob: b78b51174d2fe16e3537e477f715147d842246c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int a, b, c, d, e;

void foo(void)
{
	if (a)
		b = c;
	else
		b = d;
	if (c)
		a = b;
	if (b)
		e = a;
}

/*
 * check-name: global no-alias
 * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
 * check-output-ignore
 * check-output-pattern(4,7): load\\.
 * check-output-pattern(4): store\\.
 */