[PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-23.c
blob64334ecdfbcc0d9df42e2f3c3b69a3f856887626
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 int i;
11 unsigned char *h1, *h2;
13 h1 = (unsigned char *) malloc (N);
15 for (i = 0; i < N; i++)
17 h1[i] = 0xab;
20 (void) acc_copyin (h1, N);
22 h2 = (unsigned char *) malloc (N);
24 for (i = 0; i < N; i++)
26 h2[i] = 0xde;
29 (void) acc_copyin (h2, N);
31 acc_copyout (h1, N + N);
33 free (h1);
34 free (h2);
36 return 0;
39 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] surrounds2 \\\[\[0-9a-fA-FxX\]+,\\\+512\\\]" } */
40 /* { dg-shouldfail "" } */