* testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.

From-SVN: r142932
This commit is contained in:
Jakub Jelinek 2008-12-27 16:20:28 +01:00 committed by Jakub Jelinek
parent 94fa50c801
commit 382017a6e8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-12-27 Jakub Jelinek <jakub@redhat.com>
* testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2008-12-26 Uros Bizjak <ubizjak@gmail.com>
* testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.

View File

@ -17,7 +17,7 @@ main (void)
a[i][j][k] = i + j * 4 + k * 16;
#pragma omp parallel
{
#pragma omp for collapse(2) reduction(|:l)
#pragma omp for collapse(2) reduction(|:l) private(k)
for (i = 0; i < 2; i++)
for (j = 0; j < 2; j++)
for (k = 0; k < 2; k++)