summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr94283.c
blob: ac162d6ac7bc4cb6e50f62b96dec2447c4f0a45c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR debug/94283 */
/* { dg-do compile } */
/* { dg-options "-O3 -fno-tree-dce -fcompare-debug" } */

void
foo (int *n)
{
  for (int i = 0; i < 32; i++)
    {
      int x = 0;
      x++;
      if (i & 4)
	x++;
      x++;
    }
}