[gcc/]
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / pr43567.c
blob1bb8042abbbed56626eff59630a79220eea84b5c
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-inline -fno-tree-ch -ftree-loop-linear" } */
4 extern void abort ();
6 int
7 test (int n, int *a)
9 int i, j;
11 for (i = 0; i < n; i++)
12 for (j = 0; j < n; j++)
13 a[j] = i + n;
15 if (a[0] != 31 || i + n - 1 != 31)
16 abort ();
18 return 0;
21 int main (void)
23 int a[16];
24 test (16, a);
25 return 0;