Retro68/gcc/libgomp/testsuite/libgomp.fortran/examples-4/array_sections-3.f90

18 lines
362 B
Fortran
Raw Normal View History

2015-08-28 15:33:40 +00:00
! { dg-do run }
call foo ()
contains
subroutine foo ()
integer, target :: A(30)
integer, pointer :: p(:)
!$omp target data map(A(1:4))
p => A
!$omp target map(p(8:27)) map(A(1:4))
A(3) = 777
p(9) = 777
!$omp end target
!$omp end target data
2018-12-28 15:30:48 +00:00
if (A(3) /= 777 .or. A(9) /= 777) STOP 1
2015-08-28 15:33:40 +00:00
end subroutine
end