1 // RUN: %libomp-compile-and-run
4 #include "omp_testsuite.h"
6 //static int sum1 = 789;
8 int test_omp_parallel_private()
10 int sum
, num_threads
,sum1
;
16 #pragma omp parallel private(sum1)
20 /*printf("sum1=%d\n",sum1);*/
22 for (i
= 1; i
< 1000; i
++) {
31 known_sum
= (999 * 1000) / 2 + 7 * num_threads
;
32 return (known_sum
== sum
);
40 for(i
= 0; i
< REPETITIONS
; i
++) {
41 if(!test_omp_parallel_private()) {