[PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-16.c
blobd6f65595c3ea31a964409460d161963448e6baf3
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 *h;
13 h = (unsigned char *) malloc (N);
15 for (i = 0; i < N; i++)
17 h[i] = i;
20 (void) acc_copyin (h, N);
22 (void) acc_copyin (h, N);
24 free (h);
26 return 0;
29 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+256\\\] already mapped to \\\[\[0-9a-fA-FxX\]+,\\\+256\\\]" } */
30 /* { dg-shouldfail "" } */