1 // RUN: %libomp-compile-and-run
3 #include "omp_testsuite.h"
5 int test_omp_parallel_sections_lastprivate()
16 #pragma omp parallel sections private(i,sum0) lastprivate(i0)
33 for(i
=400;i
<700;i
++) {
45 for(i
=700;i
<1000;i
++) {
56 known_sum
=(999*1000)/2;
57 return ((known_sum
==sum
) && (i0
==999) );
65 for(i
= 0; i
< REPETITIONS
; i
++) {
66 if(!test_omp_parallel_sections_lastprivate()) {