summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr34016.c
blob: 5ca84bb6206919fe5b115cd2883e14e0e70d9e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR tree-optimization/34016 */
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-linear" } */

extern void bar (double *);

void foo (void)
{
  double gr[36];
  int i, j;
  for (i = 0; i <= 5; i++)
    {
      for (j = 0; j <= 5; j++)
        gr[i + j * 6] = 0.0;
      if (i <= 2)
        gr[i + i * 6] = 1.0;
    }
  bar (gr);
}