[PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-34.c
blob536e2aef6536936e4e6eb4dab3766cde83bd0bf1
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 *d1, *d2;
13 h = (unsigned char *) malloc (N);
15 d1 = acc_present_or_create (h, N);
16 if (!d1)
17 abort ();
19 d2 = acc_present_or_create (h + 2, N);
20 if (!d2)
21 abort ();
23 if (d1 != d2)
24 abort ();
26 acc_delete (h, N);
28 free (h);
30 return 0;
33 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+256\\\] not mapped" } */
34 /* { dg-shouldfail "" } */