1 ! Offloading test checking interaction of
2 ! mapping a declare target link common
3 ! block with device_type any to a target
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
18 !$omp declare target link(/var_common/)
22 !$omp target map(tofrom: var2)
35 common /var_common
/ var1
, var2
, var3
36 integer :: var1
, var2
, var3
38 !$omp target map(tofrom: /var_common/)
47 common /var_common
/ var1
, var2
, var3
48 integer :: var1
, var2
, var3
51 !$omp target map(tofrom: copy)
59 common /var_common
/ var1
, var2
, var3
60 integer :: var1
, var2
, var3
62 !$omp target map(tofrom: /var_common/)