aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr83385.c
blob: 627ff699040e1913bc0154a52eea8786c77bbede (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
31
32
/* { dg-do run } */
/* { dg-options "-O1 -floop-nest-optimize" } */

int xc, n1 = 0;
int bx[2];

int
main (void)
{
  int aj = 1;
  int cs;

  for (cs = aj; cs >= 0; --cs)
    {
      int sq;

      for (sq = 0; sq < 2; ++sq)
	{
	  if (aj != 0)
	    --n1;

	  for (xc = 0; xc < 2; ++xc)
	    bx[xc] = 0;
	}

      --aj;
    }

  if (n1 != -2)
    __builtin_abort ();
  return 0;
}