Sign in
◑
Theme
llvm
/
llvm-project
/
34d5bcddcfd2f3fa3ce074e1be49fe4eae920f82
/
.
/
offload
/
test
/
mapping
/
map_ordering_tgt_alloc_tofrom.c
blob: 806771e849167ca8e494f0d818f6dc8a6af2d70f [
file
]
// RUN: %libomptarget-compile-run-and-check-generic
#include
<stdio.h>
int
main
()
{
int
x
=
111
;
#pragma
omp target
map
(
alloc
:
x
)
map
(
tofrom
:
x
)
map
(
alloc
:
x
)
{
x
=
x
+
111
;
}
printf
(
"After tgt: %d\n"
,
x
);
// CHECK: After tgt: 222
}