diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/gomp/loop-1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/gomp/loop-1.C | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/testsuite/g++.dg/gomp/loop-1.C b/gcc/testsuite/g++.dg/gomp/loop-1.C index b3db0f4..abfd1e3 100644 --- a/gcc/testsuite/g++.dg/gomp/loop-1.C +++ b/gcc/testsuite/g++.dg/gomp/loop-1.C @@ -74,12 +74,12 @@ f1 (int x) for (j = 0; j < 16; j++) ; #pragma omp for collapse(2) - for (i = 0; i < 16; i = i + 2) /* { dg-error "initializer expression refers to iteration variable" } */ + for (i = 0; i < 16; i = i + 2) for (j = i; j < 16; j += 2) ; #pragma omp for collapse(2) for (i = 0; i < 16; i = i + 2) - for (j = i + 3; j < 16; j += 2) /* { dg-error "initializer expression refers to iteration variable" } */ + for (j = i + 3; j < 16; j += 2) ; #pragma omp for collapse(2) for (i = 0; i < 16; i++) @@ -91,11 +91,11 @@ f1 (int x) ; #pragma omp for collapse(2) for (i = 0; i < 16; i++) - for (j = 0; j < i; j++) /* { dg-error "condition expression refers to iteration variable" } */ + for (j = 0; j < i; j++) ; #pragma omp for collapse(2) for (i = 0; i < 16; i++) - for (j = 0; j < i + 4; j++) /* { dg-error "condition expression refers to iteration variable" } */ + for (j = 0; j < i + 4; j++) ; #pragma omp for collapse(2) for (i = 0; i < j + 4; i++) /* { dg-error "condition expression refers to iteration variable" } */ @@ -207,12 +207,12 @@ f2 (int x) for (int j = 0; j < 16; j += 2) ; #pragma omp for collapse(2) - for (int i = 0; i < 16; i = i + 2) /* { dg-error "initializer expression refers to iteration variable" } */ + for (int i = 0; i < 16; i = i + 2) for (int j = i; j < 16; j += 2) ; #pragma omp for collapse(2) for (int i = 0; i < 16; i = i + 2) - for (int j = i + 3; j < 16; j += 2) /* { dg-error "initializer expression refers to iteration variable" } */ + for (int j = i + 3; j < 16; j += 2) ; #pragma omp for collapse(2) for (int i = 0; i < 16; i++) @@ -224,11 +224,11 @@ f2 (int x) ; #pragma omp for collapse(2) for (int i = 0; i < 16; i++) - for (int j = 0; j < i; j++) /* { dg-error "condition expression refers to iteration variable" } */ + for (int j = 0; j < i; j++) ; #pragma omp for collapse(2) for (int i = 0; i < 16; i++) - for (int j = 0; j < i + 4; j++) /* { dg-error "condition expression refers to iteration variable" } */ + for (int j = 0; j < i + 4; j++) ; #pragma omp for collapse(2) for (int i = 0; i < 16; i++) |