1 ! Basic offloading test of a regular array explicitly
2 ! passed within a target region
3 ! REQUIRES: flang, amdgpu
5 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
8 integer :: inArray(3,3,3)
9 integer :: outArray(3,3,3)
11 integer :: j2
= 3, k2
= 3
24 !$omp target map(tofrom:inArray(1:3, 1:3, 2:2), outArray(1:3, 1:3, 1:3), j, k, j2, k2)
28 outArray(k
, j
, 2) = inArray(k
, j
, 2)
39 ! CHECK: 0 0 0 0 0 0 0 0 0 42 42 42 42 42 42 42 42 42 0 0 0 0 0 0 0 0 0