sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / acc_unmap_data-pr92840-1.c
blobd7ae59dd548c1d7143a79f332aacd1880e69cdbf
1 /* Verify that we refuse 'acc_unmap_data', after 'acc_create'. */
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 void *d = acc_create (h, N - 3);
16 if (!d)
17 abort ();
19 fprintf (stderr, "CheCKpOInT\n");
20 acc_unmap_data (h);
22 return 0;
25 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
26 /* { dg-output "refusing to unmap block \\\[\[0-9a-fA-FxX\]+,\\\+98\\\] that has not been mapped by 'acc_map_data'" } */
27 /* { dg-shouldfail "" } */