2 ! { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } }
8 integer, parameter :: N
= 256
9 integer, allocatable
:: h(:)
24 call acc_update_device (h
, sizeof (h
))
26 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 1
30 call acc_copyout (h
, sizeof (h
))
33 if (h(i
) /= i
+ i
) stop 2
36 call acc_copyin (h
, sizeof (h
))
40 call acc_update_self (h
, sizeof (h
))
42 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 3
45 if (h(i
) /= i
+ i
) stop 4
50 if (acc_is_present (h
) .neqv
. .FALSE
.) stop 5