gcc/testsuite/gcc.dg/graphite/pr34017.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ftree-loop-linear" } */ |
| 3 | |
| 4 | extern int s; |
| 5 | |
| 6 | void |
| 7 | foo (int *x, int y, int z) |
| 8 | { |
| 9 | int m, n; |
| 10 | int o; |
| 11 | int p = x[0]; |
| 12 | o = s; |
| 13 | for (m = 0; m < s; m++) |
| 14 | for (n = 0; n < s; n++) |
| 15 | { |
| 16 | if (x[n] != p) |
| 17 | continue; |
| 18 | if (m > z) |
| 19 | z = m; |
| 20 | if (n < o) |
| 21 | o = n; |
| 22 | } |
| 23 | for (m = y; m <= z; m++) |
| 24 | { |
| 25 | } |
| 26 | } |