c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr63249.c
blob878788ad7efb37bdee4f8ef860f27b935f00376c
1 /* PR c++/63249 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall -W -fopenmp" } */
5 int
6 foo (int *v, int A, int B) /* { dg-bogus "set but not used" } */
8 int r = 0;
9 int a = 2; /* { dg-bogus "set but not used" } */
10 int b = 4; /* { dg-bogus "set but not used" } */
11 #pragma omp target map(to: v[a:b])
12 r |= v[3];
13 #pragma omp target map(to: v[A:B])
14 r |= v[3];
15 return r;