1 /* Exercise acc_map_data with a NULL data mapping 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 (0, d
, N
);
32 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
33 /* { dg-output "\\\[\[^\n\r]*,\\\+256\]->\[\[0-9a-fA-FxX\]+,\\\+256\\\] 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 "" } */