PR c++/86342 - -Wdeprecated-copy and system headers.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-26.c
blob8e1a911abd2d62475c463802f2e5e7a75f059fec
1 /* { dg-do run } */
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <openacc.h>
7 int
8 main (int argc, char **argv)
10 const int N = 256;
11 unsigned char *h;
12 void *d;
14 h = (unsigned char *) malloc (N);
16 fprintf (stderr, "CheCKpOInT\n");
17 d = acc_create (h, 0);
18 if (!d)
19 abort ();
21 acc_delete (h, N);
23 free (h);
25 return 0;
28 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
29 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+0\\\] is a bad range" } */
30 /* { dg-shouldfail "" } */