2 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
4 /* Fortran testcase is at libgomp.oacc-fortran/acc-memcpy.f90. */
11 main (int argc
, char **argv
)
18 h
= (unsigned char *) malloc (N
);
20 for (i
= 0; i
< N
; i
++)
27 acc_memcpy_to_device (d
, h
, N
);
29 for (i
= 0; i
< N
; i
++)
31 if (acc_is_present (h
+ i
, 1) != 0)
37 acc_memcpy_from_device (h
, d
, N
);
39 for (i
= 0; i
< N
; i
++)
45 for (i
= 0; i
< N
; i
++)
47 if (acc_is_present (h
+ i
, 1) != 0)