8 character(len
=8), pointer :: bar
9 character(len
=4), allocatable
:: qux
13 character(len
=8), target
:: tgt
23 !$acc enter data copyin(var, tgt)
25 ! Avoid automatic attach (i.e. with "enter data")
26 call acc_copyin (var
%qux
)
28 !$acc enter data attach(var%bar, var%qux)
31 ! { dg-warning "using .vector_length \\(32\\)., ignoring 1" "" { target openacc_nvidia_accel_selected } .-1 }
37 !$acc exit data detach(var%bar, var%qux)
39 call acc_copyout (var
%qux
)
41 !$acc exit data copyout(var, tgt)
43 if (var
%foo
.ne
.5) stop 1
44 if (tgt
.ne
."Plankton") stop 2
45 if (var
%qux
.ne
."Pond") stop 3