summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr42530.c
blob: c0fa299ce9729a0f41c2dc7ebda9e29c38dab6df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-options "-O2 -g -ffast-math -floop-parallelize-all" } */

int array[2][2];

void foo(int *a)
{
  int i, j;
  int sum, tmp = 0;

  for (i=0; i<2; i++)
    for (j=0; j<2; j++)
      sum += array[i][j];

  if (sum > 0) {
    tmp = sum;
    *a = tmp;
  }
}