gcc/testsuite/gcc.dg/pr116879.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ftree-vectorize -fallow-store-data-races -fno-tree-ch -ftree-loop-distribution" } */ |
| 3 | |
| 4 | static int b; |
| 5 | int *a, c, *d = &c; |
| 6 | int main() { |
| 7 | int e = 0; |
| 8 | for (; e < 8; e = (char)(e + 1)) { |
| 9 | int *f = &b, g[8], h = 0; |
| 10 | for (; h < 8; h++) |
| 11 | g[h] = 0; |
| 12 | --*f != (*d = g[0] || a); |
| 13 | } |
| 14 | return 0; |
| 15 | } |