summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr43567.c
blob: 1bb8042abbbed56626eff59630a79220eea84b5c (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
/* { dg-do run } */
/* { dg-options "-O2 -fno-inline -fno-tree-ch -ftree-loop-linear" } */

extern void abort ();

int
test (int n, int *a)
{
  int i, j;

  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      a[j] = i + n;

  if (a[0] != 31 || i + n - 1 != 31)
    abort ();

  return 0;
}

int main (void)
{
  int a[16];
  test (16, a);
  return 0;
}