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
9 // UNSUPPORTED: x86_64-pc-linux-gnu
10 // UNSUPPORTED: x86_64-pc-linux-gnu-LTO
11 // UNSUPPORTED: aarch64-unknown-linux-gnu
12 // UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
19 #pragma omp target parallel map(from : x)
21 int *buf
= llvm_omp_target_dynamic_shared_alloc() + 252;
23 if (omp_get_thread_num() == 0)
26 if (omp_get_thread_num() == 1)
31 if (x
== 1 && llvm_omp_target_dynamic_shared_alloc() == NULL
)