1 /* Exercise acc_map_data with data size of zero on nvidia targets. */
3 /* { dg-do run { target openacc_nvidia_accel_selected } } */
10 main (int argc
, char **argv
)
16 h
= (unsigned char *) malloc (N
);
20 fprintf (stderr
, "CheCKpOInT\n");
21 acc_map_data (h
, d
, 0);
32 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
33 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+0\\\]->\\\[\[0-9a-fA-FxX\]+,\\\+0\\\] is a bad map" { target openacc_nvidia_accel_selected } } */
34 /* { dg-output "cannot map data on shared-memory system" { target openacc_host_selected } } */
35 /* { dg-shouldfail "" } */