2 ! { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } }
4 ! Adapted from 'libgomp.oacc-fortran/deep-copy-6.f90'.
9 integer, parameter :: n
= 512
11 integer, allocatable
:: a(:)
17 !$acc data create(var)
19 !$acc enter data create(var%a)
21 if (.not
. acc_is_present(var
%a
)) stop 1
22 if (.not
. acc_is_present(var
)) stop 2
24 !$acc exit data delete(var%a) finalize
25 if (acc_is_present(var
%a
)) stop 3
26 if (.not
. acc_is_present(var
)) stop 4
29 if (acc_is_present(var
%a
)) stop 5
30 if (acc_is_present(var
)) stop 6