Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr123061.c

raw
1 /* { dg-do run } */
2 /* { dg-additional-options "-ffinite-loops" } */
3
4 int a, b, c;
5 int d() {
6 while (a)
7 ;
8 return 0;
9 }
10 static int e(int f, int g) {
11 c = f;
12 while (1) {
13 f = 0;
14 do {
15 c = -c;
16 if (c >= 0)
17 goto h;
18 } while (-1 / b);
19 return d();
20 h:
21 b = g;
22 }
23 }
24 int main()
25 {
26 while (e(-4, 3))
27 ;
28 return 0;
29 }