PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr59670.c
bloba68253b4b6373e3f8dc22059f4ee7db4686d4624
1 /* PR middle-end/59670 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fopenmp-simd" } */
5 int d[1024];
7 int
8 foo (int j, int b)
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;