1 extern int g;
2 
3 
foo(int * p)4 static int foo(int *p)
5 {
6 	*p = 1;
7 	g = 2;
8 	return *p == 1;
9 }
10 
bar(int * p)11 static int bar(int *p)
12 {
13 	g = 1;
14 	*p = 2;
15 	return g == 1;
16 }
17 
test(void)18 static void test(void)
19 {
20 	foo(&g);
21 	bar(&g);
22 }
23 
24 /*
25  * check-name: alias symbol/pointer
26  * check-command: test-linearize $file
27  * check-output-ignore
28  *
29  * check-output-excludes: ret\\..* *\\$1
30  */
31