1 ! Offloading test checking interaction of mapping all the members of a common
2 ! block with a mix of explicit and implicit mapping to a target region
3 ! REQUIRES: flang, amdgcn-amd-amdhsa
4 ! UNSUPPORTED: nvptx64-nvidia-cuda
5 ! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
6 ! UNSUPPORTED: aarch64-unknown-linux-gnu
7 ! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
8 ! UNSUPPORTED: x86_64-unknown-linux-gnu
9 ! UNSUPPORTED: x86_64-unknown-linux-gnu-LTO
11 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
14 common /var_common
/ var1
, var2
, var3
15 integer :: var1
, var2
, var3
19 !$omp target map(tofrom: var2)
31 common /var_common
/ var1
, var2
, var3
32 integer :: var1
, var2
, var3
34 !$omp target map(tofrom: /var_common/)
42 common /var_common
/ var1
, var2
, var3
43 integer :: var1
, var2
, var3
46 !$omp target map(tofrom: copy)