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