gcc/testsuite/gcc.dg/tree-ssa/pr71661.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O3 -fdisable-tree-ethread" } */ |
| 3 | |
| 4 | extern void exit (int); |
| 5 | |
| 6 | int a, b; |
| 7 | |
| 8 | void |
| 9 | fn1 () |
| 10 | { |
| 11 | unsigned c = 0; |
| 12 | int d; |
| 13 | b = a; |
| 14 | if (a < 0) |
| 15 | goto L1; |
| 16 | for (; a < 1; a++) |
| 17 | d = 0; |
| 18 | for (; d < 2; d++) |
| 19 | { |
| 20 | for (c = 0; c < 3; c++) |
| 21 | L1: |
| 22 | a = 2; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | int |
| 27 | main () |
| 28 | { |
| 29 | fn1 (); |
| 30 | exit (0); |
| 31 | } |