aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr115152.c
blob: a44654e20157ff369bed3e2f15ee3ed5ed56e5af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR tree-optimization/115152 */
/* { dg-do run } */
/* { dg-options "-O3 -fno-tree-fre -fno-tree-dominator-opts -fno-tree-loop-im" } */

int a, b, c, d;
signed char e[1] = { 1 };

int
main ()
{
  for (a = 0; a < 3; a++)
    for (b = 0; b < 2; b++)
      c = e[0] = e[0] ^ d;
  if (!c)
    __builtin_abort ();
  return 0;
}