Improve atomic store implementation on hppa-linux.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / acc_unmap_data-pr92840-3.c
blob915a2705ea9f4143cb48997e9b8764875e7913e5
1 /* Verify that we refuse 'acc_unmap_data', inside 'data'. */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <openacc.h>
9 int
10 main ()
12 const int N = 101;
14 char *h = (char *) malloc (N);
15 #pragma acc data create (h[0:N - 55])
17 fprintf (stderr, "CheCKpOInT\n");
18 acc_unmap_data (h);
21 return 0;
24 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
25 /* { dg-output "refusing to unmap block \\\[\[0-9a-fA-FxX\]+,\\\+46\\\] that has not been mapped by 'acc_map_data'" } */
26 /* { dg-shouldfail "" } */