Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20000224-1.c

raw
1 void abort (void);
2 void exit (int);
3
4 int loop_1 = 100;
5 int loop_2 = 7;
6 int flag = 0;
7
8 int test (void)
9 {
10 int i;
11 int counter = 0;
12
13 while (loop_1 > counter) {
14 if (flag & 1) {
15 for (i = 0; i < loop_2; i++) {
16 counter++;
17 }
18 }
19 flag++;
20 }
21 return 1;
22 }
23
24 int main()
25 {
26 if (test () != 1)
27 abort ();
28
29 exit (0);
30 }
31