Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
pr100902-1.c
blob: babd01aa6f76f554449a31468a9eea8d6bc9d3c7 [
file
] [
log
] [
blame
]
/* PR c/100902 */
void
foo
(
int
*
ptr
)
{
#pragma
omp target
map
(
ptr
,
ptr
[:
4
])
#pragma
omp parallel master
ptr
[
0
]
=
1
;
}
void
bar
(
int
*
ptr
)
{
#pragma
omp target parallel
map
(
ptr
[:
4
],
ptr
)
#pragma
omp master
ptr
[
0
]
=
1
;
}