[PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-26.c
blob41d560eeb1f0859f02cedbb9ca0372e088e61b5e
1 /* { dg-do run } */
3 #include <stdlib.h>
4 #include <openacc.h>
6 int
7 main (int argc, char **argv)
9 const int N = 256;
10 unsigned char *h;
11 void *d;
13 h = (unsigned char *) malloc (N);
15 d = acc_create (h, 0);
16 if (!d)
17 abort ();
19 acc_delete (h, N);
21 free (h);
23 return 0;
26 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+0\\\] is a bad range" } */
27 /* { dg-shouldfail "" } */