gcc/testsuite/gcc.dg/torture/pr68870.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | int printf (const char *, ...); |
| 4 | |
| 5 | int a, f, g; |
| 6 | char b, d; |
| 7 | short c; |
| 8 | static short e; |
| 9 | |
| 10 | char |
| 11 | fn1 () |
| 12 | { |
| 13 | for (; b; b++) |
| 14 | { |
| 15 | int h = 5; |
| 16 | for (a = 0; a < 1; a++) |
| 17 | { |
| 18 | for (d = 0; d < 1; d++) |
| 19 | for (c = 0; c < 1; c++) |
| 20 | for (; e >= 0;) |
| 21 | return 5; |
| 22 | if (f) |
| 23 | h = 0; |
| 24 | } |
| 25 | if (h) |
| 26 | printf ("%d", 0); |
| 27 | } |
| 28 | return g; |
| 29 | } |