Let tree_single_nonzero_warnv_p use range information
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / pr60534.c
blobf8a6bdc1d81a0d04c1d7d5bb0f023b9499ddf721
1 /* PR middle-end/60534 */
2 /* { dg-do compile } */
3 /* { dg-options "-fopenmp -O -fno-tree-loop-optimize" } */
5 extern int d[];
7 int
8 foo (int a)
10 int c = 0;
11 int l;
12 #pragma omp simd reduction(+: c)
13 for (l = 0; l < a; ++l)
14 c += d[l];
15 return c;