1 // RUN: %libomptarget-compile-generic
2 // RUN: env LIBOMPTARGET_DEBUG=1 %libomptarget-run-generic 2>&1 \
3 // RUN: | %fcheck-generic -check-prefix=DEBUG -check-prefix=CHECK
4 // REQUIRES: libomptarget-debug
18 // DEBUG: Update pointer ([[DEV_PTR:0x[^ ]+]]) -> {{\[}}[[DEV_OBJ_A:0x[^ ]+]]{{\]}}
19 #pragma omp target enter data map(alloc : s1.p[0 : 10])
21 // DEBUG-NOT: Update pointer ([[DEV_PTR]]) -> {{\[}}[[DEV_OBJ_A]]{{\]}}
22 #pragma omp target map(alloc : s1.p[0 : 10])
24 for (int i
= 0; i
< 10; ++i
)
28 #pragma omp target exit data map(from : s1.p[0 : 10])
31 for (int i
= 0; i
< 10; ++i
) {
38 // CHECK-NOT: Test A failed
40 printf("Test A failed\n");