OpenACC documentation updates.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c / lib-20.c
blobb379a8f7add94323b8ecef0839cd1b04e3f8e576
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 acc_copyout (h, N + 1);
24 free (h);
26 return 0;
29 /* { dg-shouldfail "libgomp: \[\h+,256\] surounds2 \[\h+,\+257\]" } */