PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.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;