PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr61486-1.c
blobdbd621f0dba777f8233b40bea93a2813aa737015
1 /* PR middle-end/61486 */
2 /* { dg-do compile } */
3 /* { dg-options "-fopenmp" } */
5 int
6 foo (int *a)
8 int i, j = 0;
9 #pragma omp target teams distribute simd linear(i) map(a[:10])
10 for (i = 0; i < 10; i++)
11 a[i] = j;
12 return i;