aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/backend/loop.c
blob: 31054f52f8425cf7e5b716f1490a728dfd832b0f (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
 */