blob: e1db3645ce0719ee9e8e9b20bdda889f2a9e25f0 [file] [log] [blame]
int i, j;
void
foo ()
{
int v;
#pragma omp atomic release
i = i + 1;
#pragma omp atomic read
v = j;
}
#pragma omp requires atomic_default_mem_order (acq_rel) /* { dg-error "'atomic_default_mem_order' clause used lexically after first 'atomic' construct without memory order clause" } */