[SimplifyCFG] Replace unreachable switch lookup table holes with poison (#94990)
[llvm-project.git] / openmp / libompd / test / api_tests / test_ompd_get_enclosing_parallel_handle.c
blobcd7f3dda4c4be8f11be610da9032c3df240371f2
1 // RUN: %gdb-compile 2>&1 | tee %t.compile
2 // RUN: %gdb-test -x %s.cmd %t 2>&1 | tee %t.out | FileCheck %s
4 #include <omp.h>
5 #include <stdio.h>
7 int main() {
8 omp_set_num_threads(4);
9 #pragma omp parallel
11 printf("Parallel level 1, thread num = %d.\n", omp_get_thread_num());
12 omp_set_num_threads(3);
13 #pragma omp parallel
14 { printf("Parallel level 2, thread num = %d", omp_get_thread_num()); }
16 return 0;
18 // CHECK-NOT: Failed
19 // CHECK-NOT: Skip