1 /* { dg-do run { target *-*-linux* } } */
11 pthread_barrier_t bar;
17 omp_set_num_threads (3);
18 pthread_barrier_wait (&bar);
20 omp_set_num_threads (6);
21 pthread_barrier_wait (&bar);
23 if (omp_get_max_threads () != (p ? 3 : 6))
26 #pragma omp parallel num_threads (6) reduction (|:l)
28 l |= omp_get_max_threads () != (p ? 3 : 6);
29 omp_set_num_threads ((p ? 3 : 6) + omp_get_thread_num ());
30 l |= omp_get_max_threads () != ((p ? 3 : 6) + omp_get_thread_num ());
41 pthread_barrier_init (&bar, NULL, 2);
42 pthread_create (&th, NULL, tf, NULL);
44 pthread_join (th, NULL);