Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/gomp/atomic-22.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 int i, j; |
2 | |
3 void | |
4 foo () | |
5 { | |
6 int v; | |
7 #pragma omp atomic release | |
8 i = i + 1; | |
9 #pragma omp atomic read | |
10 v = j; | |
11 #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" } */ | |
12 } |