1 // RUN: %libomp-compile-and-run
6 * This test would hang when level instead of active level
7 * used to push task state.
12 // If num_threads is changed to a value greater than 1, then the test passes
13 #pragma omp parallel num_threads(1)
16 printf("Hello World from thread %d\n", omp_get_thread_num());
19 printf("omp_num_threads: %d\n", omp_get_max_threads());
24 #pragma omp task default(none)
26 printf("%d is executing this task\n", omp_get_thread_num());