aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr111137.c
blob: 77560487926ecb14c9f5c0e098b5334dd63128ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* { dg-do run } */

int b[3][8];
short d;
volatile int t = 1;

void __attribute__((noipa))
foo()
{
  int  g = t;
  for (int e = 1; e >= 0; e--)
    {
      d = 1;
      for (; d >= 0; d--)
	{
	  b[0][d * 2 + 1] = 0;
	  b[g - 1 + d][0] ^= 1;
	  b[0][d * 2 + 2] = 0;
	  b[g - 1 + d][1] ^= 1;
	}
    }
}

int
main()
{
  foo ();
  if (b[0][1] != 1)
    __builtin_abort();
}