[PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-48.c
blobfebe022c75d2d3a013d3ce93e012311852a22403
1 /* { dg-do run } */
3 #include <string.h>
4 #include <stdlib.h>
5 #include <openacc.h>
7 int
8 main (int argc, char **argv)
10 const int N = 256;
11 int i;
12 unsigned char *h;
13 void *d;
15 h = (unsigned char *) malloc (N);
17 for (i = 0; i < N; i++)
19 h[i] = i;
22 d = acc_copyin (h, N);
23 if (!d)
24 abort ();
26 memset (&h[0], 0, N);
28 acc_update_self (h, 0);
30 for (i = 0; i < N; i++)
32 if (h[i] != i)
33 abort ();
36 acc_delete (h, N);
38 free (h);
40 return 0;
43 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,0\\\] is not mapped" } */
44 /* { dg-shouldfail "" } */