summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr38997.c
blob: 211203c9c355af7dd4eec94fb2e4289bdf5c7f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-distribution" } */

int a[8][8];
int b[8];

void
foo (int i)
{
  int j;
  for (j = 0; j < 8; j++)
    {
      a[i][j] = 0;
      b[j] = j;
    }
}