OSDN Git Service

Propagate constant values or parametric expressions outside the scop region.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / graphite / pr42530.c
1 /* { dg-options "-O2 -g -ffast-math -floop-parallelize-all" } */
2
3 int array[2][2];
4
5 void foo(int *a)
6 {
7   int i, j;
8   int sum, tmp = 0;
9
10   for (i=0; i<2; i++)
11     for (j=0; j<2; j++)
12       sum += array[i][j];
13
14   if (sum > 0) {
15     tmp = sum;
16     *a = tmp;
17   }
18 }