* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-16.c
blobc81a78de26d869e27b0714b8acd03edc0212fa21
1 /* Test if duplicate data mappings with acc_copy_in. */
3 /* { dg-do run { target openacc_nvidia_accel_selected } } */
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;
16 h = (unsigned char *) malloc (N);
18 for (i = 0; i < N; i++)
20 h[i] = i;
23 (void) acc_copyin (h, N);
25 fprintf (stderr, "CheCKpOInT\n");
26 (void) acc_copyin (h, N);
28 free (h);
30 return 0;
33 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
34 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+256\\\] already mapped to \\\[\[0-9a-fA-FxX\]+,\\\+256\\\]" } */
35 /* { dg-shouldfail "" } */