1 ! Offloading test checking interaction of mapping all the members of a common
2 ! block 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: var1, var2, var3)
33 common /var_common
/ var1
, var2
, var3
34 integer :: var1
, var2
, var3
35 !$omp target map(tofrom: var2, var1, var3)
43 common /var_common
/ var1
, var2
, var3
44 integer :: var1
, var2
, var3
45 !$omp target map(tofrom: var2, var3, var1)