repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
requires-7.c
blob
4735ef2a6e00625e43a2e5bdb82869c243364ac1
1
#pragma omp requires atomic_default_mem_order(release)
2
3
int
4
foo
(
int
x
)
5
{
6
int
z
;
7
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
;
11
}