1 // RUN: %libomp-compile-and-run
3 #include "omp_testsuite.h"
5 int test_omp_section_private()
17 #pragma omp sections private(sum0,i)
22 for (i
= 1; i
< 400; i
++)
32 for (i
= 400; i
< 700; i
++)
42 for (i
= 700; i
< 1000; i
++)
50 } /* end of parallel */
51 known_sum
= (999 * 1000) / 2 + 7;
52 return (known_sum
== sum
);
53 } /* end of check_section_private*/
60 for(i
= 0; i
< REPETITIONS
; i
++) {
61 if(!test_omp_section_private()) {