1 /* Exercise acc_update_device with a NULL data address on nvidia targets. */
3 /* { dg-do run { target openacc_nvidia_accel_selected } } */
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 (0, N
);
38 for (i
= 0; i
< N
; i
++)
49 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
50 /* { dg-output "\\\[\[^\n\r]*,256\\\] is not mapped" } */
51 /* { dg-shouldfail "" } */