PR c++/86342 - -Wdeprecated-copy and system headers.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-27.c
blobc61f62e9f1fcb0ea00339a65441e849a54f774f9
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 (0, N);
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 "\\\[\[^\n\r]*,\\\+256\\\] is a bad range" } */
30 /* { dg-shouldfail "" } */