Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
libgomp
/
testsuite
/
libgomp.c
/
pr104783.c
blob: 05a93cd6bc166a29fc3c871ed28a8ab42e9a1bce [
file
] [
log
] [
blame
]
int
main
(
void
)
{
unsigned
val
=
0
;
#pragma
omp target
map
(
tofrom
:
val
)
#pragma
omp simd
for
(
int
i
=
0
;
i
<
1
;
i
++)
{
#pragma
omp atomic update
val
=
val
+
1
;
}
if
(
val
!=
1
)
__builtin_abort
();
return
0
;
}