1 ! REQUIRES: flang, amdgcn-amd-amdhsa
2 ! UNSUPPORTED: nvptx64-nvidia-cuda
3 ! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
4 ! UNSUPPORTED: aarch64-unknown-linux-gnu
5 ! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
6 ! UNSUPPORTED: x86_64-pc-linux-gnu
7 ! UNSUPPORTED: x86_64-pc-linux-gnu-LTO
9 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
18 print *, "var4 before target = ", var4
19 !$omp target map(tofrom:var4)
22 print *, "var4 after target = ", var4
25 ! CHECK: var4 before target = 24
26 ! CHECK: var4 after target = 12