c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / requires-7.c
blob4735ef2a6e00625e43a2e5bdb82869c243364ac1
1 #pragma omp requires atomic_default_mem_order(release)
3 int
4 foo (int x)
6 int z;
8 #pragma omp atomic read /* { dg-error "'#pragma omp atomic read' incompatible with 'release' clause implicitly provided by a 'requires' directive" } */
9 z = x;
10 return z;