1 // RUN: %libomp-compile-and-run
4 #include "omp_testsuite.h"
7 #pragma omp threadprivate(sum1)
9 int test_omp_parallel_copyin()
18 #pragma omp parallel copyin(sum1)
20 /*printf("sum1=%d\n",sum1);*/
23 for (i
= 1; i
< 1000; i
++) {
31 } /* end of parallel*/
32 known_sum
= (999 * 1000) / 2 + 7 * num_threads
;
33 return (known_sum
== sum
);
41 for(i
= 0; i
< REPETITIONS
; i
++) {
42 if(!test_omp_parallel_copyin()) {