1 /* Verify that we refuse 'acc_map_data' when the "host address [...] is already
4 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
16 char *h
= (char *) malloc (N
);
18 void *d1
= acc_malloc (N
);
20 acc_map_data (h
, d1
, N
);
22 void *d2
= acc_malloc (N
);
24 fprintf (stderr
, "CheCKpOInT\n");
25 acc_map_data (h
, d2
, N
);
31 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
32 /* { dg-output "host address \\\[\[0-9a-fA-FxX\]+, \\\+101\\\] is already mapped" } */
33 /* { dg-shouldfail "" } */