2 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
9 main (int argc
, char **argv
)
16 h
= (unsigned char *) malloc (N
);
20 acc_map_data (h
, d
, N
);
22 for (i
= 0; i
< N
; i
++)
24 if (acc_hostptr ((void *)((uintptr_t) d
+ (uintptr_t) i
)) !=
25 (void *)((uintptr_t) h
+ (uintptr_t) i
))
29 for (i
= 0; i
< N
; i
++)
31 if (acc_deviceptr ((void *)((uintptr_t) h
+ (uintptr_t) i
)) !=
32 (void *)((uintptr_t) d
+ (uintptr_t) i
))
38 for (i
= 0; i
< N
; i
++)
40 if (acc_hostptr ((void *)((uintptr_t) d
+ (uintptr_t) i
)) != 0)
44 for (i
= 0; i
< N
; i
++)
46 if (acc_deviceptr (h
+ i
) != 0)