* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-18.c
blobb686cc9481551d3ee449ca6a7df2c661904f9e9f
1 /* Verify that acc_delete unregisters data mappings on the device. */
3 /* { dg-do run { target openacc_nvidia_accel_selected } } */
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <openacc.h>
9 int
10 main (int argc, char **argv)
12 const int N = 256;
13 int i;
14 unsigned char *h;
15 void *d;
17 h = (unsigned char *) malloc (N);
19 for (i = 0; i < N; i++)
21 h[i] = i;
24 d = acc_copyin (h, N);
26 acc_free (d);
28 fprintf (stderr, "CheCKpOInT\n");
29 acc_copyout (h, N);
31 free (h);
33 return 0;
36 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
37 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] is not mapped" } */
38 /* { dg-shouldfail "" } */