]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/testsuite/libgomp.oacc-c-c++-common/lib-16.c
Add checkpoint to libgomp dg-shouldfail tests
[thirdparty/gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / lib-16.c
1 /* { dg-do run } */
2
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <openacc.h>
6
7 int
8 main (int argc, char **argv)
9 {
10 const int N = 256;
11 int i;
12 unsigned char *h;
13
14 h = (unsigned char *) malloc (N);
15
16 for (i = 0; i < N; i++)
17 {
18 h[i] = i;
19 }
20
21 (void) acc_copyin (h, N);
22
23 fprintf (stderr, "CheCKpOInT\n");
24 (void) acc_copyin (h, N);
25
26 free (h);
27
28 return 0;
29 }
30
31 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
32 /* { dg-output "\\\[\[0-9a-fA-FxX\]+,\\\+256\\\] already mapped to \\\[\[0-9a-fA-FxX\]+,\\\+256\\\]" } */
33 /* { dg-shouldfail "" } */