]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/testsuite/libgomp.oacc-c-c++-common/data-already-3.c
Add checkpoint to libgomp dg-shouldfail tests
[thirdparty/gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / data-already-3.c
1 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
2
3 #include <stdio.h>
4 #include <openacc.h>
5
6 int
7 main (int argc, char *argv[])
8 {
9 int i;
10
11 #pragma acc data present_or_copy (i)
12 {
13 fprintf (stderr, "CheCKpOInT\n");
14 acc_copyin (&i, sizeof i);
15 }
16
17 return 0;
18 }
19
20 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
21 /* { dg-output "already mapped to" } */
22 /* { dg-shouldfail "" } */