summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr36287.c
blob: 51b77c7157d6cd07dab0d3862424772685134b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options "-O -ftree-loop-linear" } */

int tab[2][2];

int foo ()
{
  int i, j, k;

  for (i = 0; i < 2; ++i)
    for (j = 0; j < 2; ++j)
      for (k = 0; k < 2; ++k) 
	{}

  for (i = 0; i < 2; ++i)
    for (j = 0; j < 2; ++j)
      if (i == 0)
	tab[i][j] = 0;

  return tab[0][1];
}