1 /* PR middle-end/59670 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O1 -fopenmp-simd" } */ 4 5 int d[1024]; 6 7 int foo(int j,int b)8 foo (int j, int b) 9 { 10 int l, c = 0; 11 #pragma omp simd reduction(+: c) 12 for (l = 0; l < b; ++l) 13 c += d[j + l]; 14 return c; 15 } 16