1 // RUN: %libomptarget-compile-run-and-check-generic
9 int *hst_ptr
= omp_alloc(N
* sizeof(int), llvm_omp_target_host_mem_alloc
);
11 for (int i
= 0; i
< N
; ++i
)
14 #pragma omp target teams distribute parallel for map(tofrom : hst_ptr[0 : N])
15 for (int i
= 0; i
< N
; ++i
)
19 for (int i
= 0; i
< N
; ++i
)
22 omp_free(hst_ptr
, llvm_omp_target_host_mem_alloc
);