aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/requires-7.c
blob: 4735ef2a6e00625e43a2e5bdb82869c243364ac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma omp requires atomic_default_mem_order(release)

int
foo (int x)
{
  int z;

  #pragma omp atomic read /* { dg-error "'#pragma omp atomic read' incompatible with 'release' clause implicitly provided by a 'requires' directive" } */
    z = x;
  return z;
}