1 /* Exercise acc_update_device with size zero data. */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
10 main (int argc
, char **argv
)
17 h
= (unsigned char *) malloc (N
);
19 for (i
= 0; i
< N
; i
++)
24 d
= acc_copyin (h
, N
);
28 for (i
= 0; i
< N
; i
++)
33 fprintf (stderr
, "CheCKpOInT\n");
34 acc_update_device (h
, 0);
38 for (i
= 0; i
< N
; i
++)
49 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
50 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,0\\\] is not mapped" } */
51 /* { dg-shouldfail "" } */