gcc/testsuite/gcc.dg/graphite/pr84872.c
raw| 1 | /* PR rtl-optimization/84872 */ |
| 2 | /* { dg-do compile { target pthread } } */ |
| 3 | /* { dg-options "-O1 -floop-parallelize-all -freorder-blocks-and-partition -fschedule-insns2 -fselective-scheduling2 -fsel-sched-pipelining -fno-tree-dce" } */ |
| 4 | |
| 5 | void |
| 6 | foo (int x) |
| 7 | { |
| 8 | int a[2]; |
| 9 | int b, c = 0; |
| 10 | |
| 11 | for (b = 0; b < 2; ++b) |
| 12 | a[b] = 0; |
| 13 | for (b = 0; b < 2; ++b) |
| 14 | a[b] = 0; |
| 15 | |
| 16 | while (c < 1) |
| 17 | while (x < 1) |
| 18 | ++x; |
| 19 | } |