1int a, c, d;
2
3int foo_ptr(void)
4{
5	int b, *bp = &b;
6	int e, *ep = &e;
7
8	if (a)
9		*bp = c;
10	else
11		*bp = d;
12	if (c)
13		a = *bp;
14	if (b)
15		e = a;
16	return e;
17}
18
19/*
20 * check-name: global pointer
21 * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
22 * check-known-to-fail
23 * check-output-ignore
24 * check-output-pattern(4,5): load\\.
25 * check-output-pattern(3): store\\.
26 */
27