aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/backend/loop.c
blob: 181a00689599d46a6d3c885d2e2271c7e268267e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
extern int bar (int);

extern int foo (int);
   
int foo (int x)
{
	int y = 0;
   
	while (y < 1000) {
		y += bar(x);
	}
   
	return y;
}
    

/*
 * check-name: Loops
 * check-command: sparsec -c $file -o tmp.o
 */