test omp_threadprivate_for.c fixed

llvm-svn: 256473
This commit is contained in:
Andrey Churbanov 2015-12-27 18:14:40 +00:00
parent 015e6c8a6a
commit 4b939405c5
1 changed files with 3 additions and 2 deletions

View File

@ -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