[Openmp-commits] [openmp] r256473 - test omp_threadprivate_for.c fixed
Andrey Churbanov via Openmp-commits
openmp-commits at lists.llvm.org
Sun Dec 27 10:14:42 PST 2015
Author: achurbanov
Date: Sun Dec 27 12:14:40 2015
New Revision: 256473
URL: http://llvm.org/viewvc/llvm-project?rev=256473&view=rev
Log:
test omp_threadprivate_for.c fixed
Modified:
openmp/trunk/runtime/test/threadprivate/omp_threadprivate_for.c
Modified: openmp/trunk/runtime/test/threadprivate/omp_threadprivate_for.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/threadprivate/omp_threadprivate_for.c?rev=256473&r1=256472&r2=256473&view=diff
==============================================================================
--- openmp/trunk/runtime/test/threadprivate/omp_threadprivate_for.c (original)
+++ openmp/trunk/runtime/test/threadprivate/omp_threadprivate_for.c Sun Dec 27 12:14:40 2015
@@ -16,9 +16,10 @@ int test_omp_threadprivate_for()
#pragma omp parallel
{
- int sum0 = 0;
+ int sum0 = 0, i0;
#pragma omp for
- for (i = 1; i <= LOOPCOUNT; i++) {
+ for (i0 = 1; i0 <= LOOPCOUNT; i0++) {
+ i = i0;
sum0 = sum0 + i;
}
#pragma omp critical
More information about the Openmp-commits
mailing list