9 for (int i
= 0; i
< N
; i
++) {
14 #pragma omp target enter data map (alloc: a, c)
16 /* This should work as a has already been allocated. */
17 #pragma omp target update to (present: a)
19 #pragma omp target map(present,alloc: a, c)
20 for (int i
= 0; i
< N
; i
++) {
26 #pragma omp target update from(present : c)
27 for (int i
= 0; i
< N
; i
++) {
32 fprintf (stderr
, "CheCKpOInT\n");
33 /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
35 /* This should fail as b has not been allocated. */
36 /* { dg-output "libgomp: present clause: not present on the device \\(addr: 0x\[0-9a-f\]+, size: \[0-9\]+ \\(0x\[0-9a-f\]+\\), dev: \[0-9\]+\\\)" { target offload_device_nonshared_as } } */
37 /* { dg-shouldfail "present error triggered" { offload_device_nonshared_as } } */
38 #pragma omp target update to (present: b)
40 #pragma omp target exit data map (from: c)