sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-44.c
blobf02fe2188dc1622a477dadb89d74b41f7205334b
1 /* Exercise acc_update_device with size zero data. */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <openacc.h>
9 int
10 main (int argc, char **argv)
12 const int N = 256;
13 int i;
14 unsigned char *h;
15 void *d;
17 h = (unsigned char *) malloc (N);
19 for (i = 0; i < N; i++)
21 h[i] = i;
24 d = acc_copyin (h, N);
25 if (!d)
26 abort ();
28 for (i = 0; i < N; i++)
30 h[i] = 0xab;
33 fprintf (stderr, "CheCKpOInT\n");
34 acc_update_device (h, 0);
36 acc_copyout (h, N);
38 for (i = 0; i < N; i++)
40 if (h[i] != 0xab)
41 abort ();
44 free (h);
46 return 0;
49 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
50 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,0\\\] is not mapped" } */
51 /* { dg-shouldfail "" } */