[llvm] Stop including unordered_map (NFC)
[llvm-project.git] / openmp / runtime / test / tasking / nested_parallel_tasking.c
blob4374d6ecda21ad6153d98448e23b65cc0aac71f7
1 // RUN: %libomp-compile-and-run
2 #include <stdio.h>
3 #include <omp.h>
5 /*
6 * This test would hang when level instead of active level
7 * used to push task state.
8 */
10 int main()
12 // If num_threads is changed to a value greater than 1, then the test passes
13 #pragma omp parallel num_threads(1)
15 #pragma omp parallel
16 printf("Hello World from thread %d\n", omp_get_thread_num());
19 printf("omp_num_threads: %d\n", omp_get_max_threads());
21 #pragma omp parallel
23 #pragma omp master
24 #pragma omp task default(none)
26 printf("%d is executing this task\n", omp_get_thread_num());
30 printf("pass\n");
31 return 0;