[PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-18.c
bloba3cb59a0dab8483ae67f5964631a4ed95a8faa73
1 /* { dg-do run } */
3 #include <stdlib.h>
4 #include <openacc.h>
6 #include <stdio.h>
8 int
9 main (int argc, char **argv)
11 const int N = 256;
12 int i;
13 unsigned char *h;
14 void *d;
16 h = (unsigned char *) malloc (N);
18 for (i = 0; i < N; i++)
20 h[i] = i;
23 d = acc_copyin (h, N);
25 acc_free (d);
27 acc_copyout (h, N);
29 free (h);
31 return 0;
34 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] is not mapped" } */
35 /* { dg-shouldfail "" } */