1 ! Offloading test checking interaction of
2 ! mapping all the members of a common block
4 ! REQUIRES: flang, amdgcn-amd-amdhsa
5 ! UNSUPPORTED: nvptx64-nvidia-cuda
6 ! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
7 ! UNSUPPORTED: aarch64-unknown-linux-gnu
8 ! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
9 ! UNSUPPORTED: x86_64-pc-linux-gnu
10 ! UNSUPPORTED: x86_64-pc-linux-gnu-LTO
12 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
15 common /var_common
/ var1
, var2
, var3
16 integer :: var1
, var2
, var3
20 !$omp target map(tofrom: var1, var2, var3)
34 common /var_common
/ var1
, var2
, var3
35 integer :: var1
, var2
, var3
36 !$omp target map(tofrom: var2, var1, var3)
44 common /var_common
/ var1
, var2
, var3
45 integer :: var1
, var2
, var3
46 !$omp target map(tofrom: var2, var3, var1)