1 // RUN: %libomp-compile-and-run
3 #include "omp_testsuite.h"
7 int nr_threads_in_single
;
12 nr_threads_in_single
= 0;
16 #pragma omp parallel private(i)
18 for (i
= 0; i
< LOOPCOUNT
; i
++) {
22 nr_threads_in_single
++;
25 nr_threads_in_single
--;
26 result
= result
+ nr_threads_in_single
;
30 return ((result
== 0) && (nr_iterations
== LOOPCOUNT
));
31 } /* end of check_single*/
38 for(i
= 0; i
< REPETITIONS
; i
++) {
39 if(!test_omp_single()) {