summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr31183.c
blob: 000d7b5bfc3b16a6125d51cc8070b3da7c578b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */ 
/* { dg-options "-O2 -ftree-loop-linear" } */

int buf[256 * 9];
int f() 
{
  int i, j;

  for (i = 0; i < 256; ++i)
    for (j = 0; j < 8; ++j)
      buf[j + 1] = buf[j] + 1;

  return buf[10];
}