c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / requires-6.c
blob4470c8cae1a47617d3eae62708f54374c9f658cf
1 /* { dg-additional-options "-fdump-tree-original" } */
3 #pragma omp requires atomic_default_mem_order(acquire)
5 int
6 bar (int a, int b)
8 int c;
10 #pragma omp atomic write release
11 a = b;
13 #pragma omp atomic update
14 a += 1;
16 #pragma omp atomic read
17 c = a;
18 return c;
21 /* { dg-final { scan-tree-dump "#pragma omp atomic release" "original" } } */
22 /* { dg-final { scan-tree-dump "#pragma omp atomic acquire" "original" } } */
23 /* { dg-final { scan-tree-dump "c = #pragma omp atomic read acquire" "original" } } */