summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr46215.c
blob: cf7b07f20197fc008d0d5a6982b30ed6a8d8439a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O -fstrict-overflow -fno-tree-ch -ftree-loop-linear" } */

extern int y[], x1[], x2[];
void
foo (long n)
{
  int i, j;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j += 2)
      y[i] = x1[i + j] * x2[i + j];
}