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_create (h
, N
);
21 void *d2
= acc_malloc (N
);
23 fprintf (stderr
, "CheCKpOInT\n");
24 acc_map_data (h
, d2
, N
);
30 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
31 /* { dg-output "host address \\\[\[0-9a-fA-FxX\]+, \\\+102\\\] is already mapped" } */
32 /* { dg-shouldfail "" } */