* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / data-already-1.c
blob0ed53a41a96be0bdf1720eff8853bf1adef1f538
1 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
3 #include <stdio.h>
4 #include <openacc.h>
6 int
7 main (int argc, char *argv[])
9 int i;
11 acc_copyin (&i, sizeof i);
13 fprintf (stderr, "CheCKpOInT\n");
14 #pragma acc data copy (i)
15 ++i;
17 return 0;
20 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
21 /* { dg-output "Trying to map into device \\\[\[0-9a-fA-FxX\]+..\[0-9a-fA-FxX\]+\\\) object when \\\[\[0-9a-fA-FxX\]+..\[0-9a-fA-FxX\]+\\\) is already mapped" } */
22 /* { dg-shouldfail "" } */