2 ! { dg-additional-options "-cpp" }
7 integer, target
:: i
, arr(1000)
8 integer, pointer :: ip
, iph
9 integer, contiguous
, pointer :: parr(:), parrh(:)
11 ! Assign the same targets
17 !$acc data copyin(i, arr)
18 !$acc host_data use_device(ip, parr)
20 ! Test how the pointers compare inside a host_data construct
22 if (.not
. associated(ip
, iph
)) STOP 1
23 if (.not
. associated(parr
, parrh
)) STOP 2
25 if (associated(ip
, iph
)) STOP 3
26 if (associated(parr
, parrh
)) STOP 4