1 // RUN: %libomp-compile-and-run
3 #include "omp_testsuite.h"
5 int test_omp_get_num_threads()
7 /* checks that omp_get_num_threads is equal to the number of
19 } /* end of critical */
22 nthreads_lib
= omp_get_num_threads ();
24 } /* end of parallel */
25 return (nthreads
== nthreads_lib
);
33 for(i
= 0; i
< REPETITIONS
; i
++) {
34 if(!test_omp_get_num_threads()) {