gcc/testsuite/gcc.c-torture/compile/pr49710.c
raw| 1 | int a, b, c, d; |
| 2 | void baz (void); |
| 3 | |
| 4 | static void |
| 5 | foo (int *x) |
| 6 | { |
| 7 | c = 0; |
| 8 | while (1) |
| 9 | { |
| 10 | if (*x) |
| 11 | break; |
| 12 | while (b) |
| 13 | for (; c; c = 0); |
| 14 | for (d = 18; d != 18; d++) |
| 15 | if (c) |
| 16 | { |
| 17 | foo (x); |
| 18 | return; |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | static void |
| 24 | bar (void) |
| 25 | { |
| 26 | foo (0); |
| 27 | foo (0); |
| 28 | for (;;) |
| 29 | ; |
| 30 | } |
| 31 | |
| 32 | void |
| 33 | baz (void) |
| 34 | { |
| 35 | for (; a;) |
| 36 | bar (); |
| 37 | } |