[PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-54.c
blob20fd17501d53f23e515c10d3fb9fe00e160689bf
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 *d;
13 h = (unsigned char *) malloc (N);
15 d = acc_malloc (N);
17 acc_map_data (h, d, 0);
19 acc_unmap_data (h);
21 acc_free (d);
23 free (h);
25 return 0;
28 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+0\\\]->\\\[\[0-9a-fA-FxX\]+,\\\+0\\\] is a bad map" { target openacc_nvidia_accel_selected } } */
29 /* { dg-output "cannot map data on shared-memory system" { target openacc_host_selected } } */
30 /* { dg-shouldfail "" } */