Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / graphite / pr42530.c
blobc0fa299ce9729a0f41c2dc7ebda9e29c38dab6df
1 /* { dg-options "-O2 -g -ffast-math -floop-parallelize-all" } */
3 int array[2][2];
5 void foo(int *a)
7 int i, j;
8 int sum, tmp = 0;
10 for (i=0; i<2; i++)
11 for (j=0; j<2; j++)
12 sum += array[i][j];
14 if (sum > 0) {
15 tmp = sum;
16 *a = tmp;