1 /* Exercise acc_copyin and acc_copyout. */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
10 main (int argc
, char **argv
)
16 h
= (unsigned char *) malloc (N
);
18 for (i
= 0; i
< N
; i
++)
23 (void) acc_copyin (h
, N
);
25 fprintf (stderr
, "CheCKpOInT\n");
26 acc_copyout (h
, N
+ 1);
33 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
34 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+257\\\] outside mapped block \\\[\[0-9a-fA-FxX\]+,\\\+256\\\]" } */
35 /* { dg-shouldfail "" } */