gcc/testsuite/gcc.dg/pr115152.c
raw| 1 | /* PR tree-optimization/115152 */ |
| 2 | /* { dg-do run } */ |
| 3 | /* { dg-options "-O3 -fno-tree-fre -fno-tree-dominator-opts -fno-tree-loop-im" } */ |
| 4 | |
| 5 | int a, b, c, d; |
| 6 | signed char e[1] = { 1 }; |
| 7 | |
| 8 | int |
| 9 | main () |
| 10 | { |
| 11 | for (a = 0; a < 3; a++) |
| 12 | for (b = 0; b < 2; b++) |
| 13 | c = e[0] = e[0] ^ d; |
| 14 | if (!c) |
| 15 | __builtin_abort (); |
| 16 | return 0; |
| 17 | } |