Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
pr97958.c
blob: 5a6de02f373912e7caeaee0aa9d0fd8d1507d221 [
file
] [
log
] [
blame
]
/* PR c/97958 */
int
*
p
;
void
foo
(
void
)
{
#pragma
omp atomic
p
=
p
+
1
;
}
void
bar
(
void
)
{
#pragma
omp atomic
/* { dg-error "invalid expression type for '#pragma omp atomic'" } */
bar
=
bar
+
1
;
}