1 // RUN: %libomptarget-compile-generic
2 // RUN: env LIBOMPTARGET_SHARED_MEMORY_SIZE=256 \
3 // RUN: %libomptarget-run-generic | %fcheck-generic
5 // RUN: %libomptarget-compileopt-generic
6 // RUN: env LIBOMPTARGET_SHARED_MEMORY_SIZE=256 \
7 // RUN: %libomptarget-run-generic | %fcheck-generic
16 #pragma omp target parallel map(from : x)
18 int *buf
= llvm_omp_target_dynamic_shared_alloc() + 252;
20 if (omp_get_thread_num() == 0)
23 if (omp_get_thread_num() == 1)
28 if (x
== 1 && llvm_omp_target_dynamic_shared_alloc() == NULL
)