1 // RUN: %libomptarget-compile-run-and-check-generic
8 #pragma omp declare target to(malloc)
9 #pragma omp declare target to(free)
14 #pragma omp target map(from : d_x)
16 d_x
= malloc(sizeof(unsigned));
20 #pragma omp target is_device_ptr(d_x) map(from : h_x)
23 #pragma omp target is_device_ptr(d_x)
28 fputs("PASS\n", stdout
);