xref: /illumos-gate/usr/src/tools/smatch/src/validation/mem2reg/alias-same.c (revision c85f09cc92abd00c84e58ec9f0f5d942906cb713)
1*c85f09ccSJohn Levon extern int g;
2*c85f09ccSJohn Levon 
3*c85f09ccSJohn Levon 
foo(void)4*c85f09ccSJohn Levon static int foo(void)
5*c85f09ccSJohn Levon {
6*c85f09ccSJohn Levon 	g = 1;
7*c85f09ccSJohn Levon 	g = 2;
8*c85f09ccSJohn Levon 	return g != 1;
9*c85f09ccSJohn Levon }
10*c85f09ccSJohn Levon 
11*c85f09ccSJohn Levon /*
12*c85f09ccSJohn Levon  * check-name: alias same symbols
13*c85f09ccSJohn Levon  * check-command: test-linearize $file
14*c85f09ccSJohn Levon  * check-output-ignore
15*c85f09ccSJohn Levon  *
16*c85f09ccSJohn Levon  * check-output-contains: ret\\..* *\\$1
17*c85f09ccSJohn Levon  */
18