diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-12-27 18:14:40 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-12-27 18:14:40 +0000 |
commit | 4b939405c5d7c389d27942d6bc04ac26fbdd238c (patch) | |
tree | a3035f5dac9c3e9a39d6c399e843fddf31868924 /openmp/runtime/test/threadprivate/omp_threadprivate_for.c | |
parent | 015e6c8a6a9e36d869bfb8583d09904fa90f88b4 (diff) | |
download | bcm5719-llvm-4b939405c5d7c389d27942d6bc04ac26fbdd238c.tar.gz bcm5719-llvm-4b939405c5d7c389d27942d6bc04ac26fbdd238c.zip |
test omp_threadprivate_for.c fixed
llvm-svn: 256473
Diffstat (limited to 'openmp/runtime/test/threadprivate/omp_threadprivate_for.c')
-rw-r--r-- | openmp/runtime/test/threadprivate/omp_threadprivate_for.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openmp/runtime/test/threadprivate/omp_threadprivate_for.c b/openmp/runtime/test/threadprivate/omp_threadprivate_for.c index abfe52b00d0..3163a99cb44 100644 --- a/openmp/runtime/test/threadprivate/omp_threadprivate_for.c +++ b/openmp/runtime/test/threadprivate/omp_threadprivate_for.c @@ -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 |