xref: /illumos-gate/usr/src/tools/smatch/src/validation/mem2reg/loop02-local.c (revision b531f6d16eb39863e7bbc34773fb7ef7a282a0a2)
1 
2 
3 int foo(void)
4 {
5 	int j = 1;
6 	int i = 6;
7 
8 	do {
9 		if (i != 6)
10 			i++;
11 		i++;
12 	} while (i != j);
13 
14 	return j;
15 }
16 
17 /*
18  * check-name: loop02 pointer
19  * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
20  *
21  * check-output-ignore
22  * check-output-excludes: load\\.
23  */
24