gcc/testsuite/gcc.c-torture/execute/pr97421-3.c
raw| 1 | /* PR rtl-optimization/97421 */ |
| 2 | /* { dg-additional-options "-fmodulo-sched" } */ |
| 3 | |
| 4 | int a, b, c; |
| 5 | short d; |
| 6 | void e(void) { |
| 7 | unsigned f = 0; |
| 8 | for (; f <= 2; f++) { |
| 9 | int g[1]; |
| 10 | int h = (long)g; |
| 11 | c = 0; |
| 12 | for (; c < 10; c++) |
| 13 | g[0] = a = 0; |
| 14 | for (; a <= 2; a++) |
| 15 | b = d; |
| 16 | } |
| 17 | } |
| 18 | int main(void) { |
| 19 | e(); |
| 20 | if (a != 3) |
| 21 | __builtin_abort(); |
| 22 | } |