1 // RUN: %libomp-compile-and-run
3 #include "omp_testsuite.h"
5 int test_omp_parallel_default()
12 known_sum
= (LOOPCOUNT
* (LOOPCOUNT
+ 1)) / 2 ;
14 #pragma omp parallel default(shared) private(i) private(mysum)
18 for (i
= 1; i
<= LOOPCOUNT
; i
++) {
24 } /* end of critical */
25 } /* end of parallel */
26 if (known_sum
!= sum
) {
27 fprintf(stderr
, "KNOWN_SUM = %d; SUM = %d\n", known_sum
, sum
);
29 return (known_sum
== sum
);
37 for(i
= 0; i
< REPETITIONS
; i
++) {
38 if(!test_omp_parallel_default()) {