1 ! Offloading test checking interaction of
2 ! mapping all the members of a common block
3 ! with a mix of explicit and implicit
4 ! mapping to a target region
5 ! REQUIRES: flang, amdgcn-amd-amdhsa
6 ! UNSUPPORTED: nvptx64-nvidia-cuda
7 ! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
8 ! UNSUPPORTED: aarch64-unknown-linux-gnu
9 ! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
10 ! UNSUPPORTED: x86_64-pc-linux-gnu
11 ! UNSUPPORTED: x86_64-pc-linux-gnu-LTO
13 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
16 common /var_common
/ var1
, var2
, var3
17 integer :: var1
, var2
, var3
21 !$omp target map(tofrom: var2)
33 common /var_common
/ var1
, var2
, var3
34 integer :: var1
, var2
, var3
36 !$omp target map(tofrom: /var_common/)
44 common /var_common
/ var1
, var2
, var3
45 integer :: var1
, var2
, var3
48 !$omp target map(tofrom: copy)