gcc/testsuite/gcc.dg/torture/pr61576.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | #include <stdlib.h> |
| 4 | volatile int a, b; |
| 5 | int c, d, e, f; |
| 6 | |
| 7 | static int |
| 8 | fn1 () |
| 9 | { |
| 10 | if (b) |
| 11 | { |
| 12 | d++; |
| 13 | e = c || f; |
| 14 | } |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | int |
| 19 | main () |
| 20 | { |
| 21 | for (; a < 1; a++) |
| 22 | { |
| 23 | fn1 (); |
| 24 | continue; |
| 25 | } |
| 26 | if (d != 0) |
| 27 | abort(); |
| 28 | return 0; |
| 29 | } |