1 // RUN: %libomp-compile-and-run
19 omp_set_max_active_levels(2);
22 for (n
= 0; n
< 200; ++n
) {
24 #pragma omp parallel num_threads(8)
26 if (omp_get_thread_num() == 0)
27 nth_outer
= omp_get_num_threads();
28 #pragma omp parallel num_threads(2)
32 for (i
= 0; i
< 50; ++i
)
36 if (a
!= nth_outer
* 50) {
37 fprintf(stderr
, "error: a (%d) != %d\n", a
, nth_outer
* 50);