PR c++/86342 - -Wdeprecated-copy and system headers.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-35.c
blob5e0a0e9bec249f2cbcf3adaafc90054ce31138d9
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_present_or_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 "" } */