1 // RUN: %libomp-compile-and-run
3 #include "omp_testsuite.h"
5 int test_omp_master_3()
9 int tid_result
= 0; /* counts up the number of wrong thread no. for
10 the master thread. (Must be 0) */
12 executing_thread
= -1;
18 int tid
= omp_get_thread_num();
27 executing_thread
= omp_get_thread_num ();
29 } /* end of parallel*/
30 return ((nthreads
== 1) && (executing_thread
== 0) && (tid_result
== 0));
38 for(i
= 0; i
< REPETITIONS
; i
++) {
39 if(!test_omp_master_3()) {