{
tree l = build_omp_clause (input_location,
OMP_CLAUSE_LASTPRIVATE);
+ if (OMP_CLAUSE_LASTPRIVATE_CONDITIONAL (c))
+ OMP_CLAUSE_LASTPRIVATE_CONDITIONAL (l) = 1;
OMP_CLAUSE_DECL (l) = dovar_decl;
OMP_CLAUSE_CHAIN (l) = omp_clauses;
OMP_CLAUSE_LASTPRIVATE_STMT (l) = tmp;
end do
!$omp end parallel
- ! Error in eqiv. C code: "conditional 'lastprivate' on loop iterator 'i' ignored"
- !$omp parallel do lastprivate (conditional: i)
+ !$omp parallel do lastprivate (conditional: i) ! { dg-warning "conditional 'lastprivate' on loop iterator 'i' ignored" }
do i = 1, 32
end do
!$omp end parallel do
- ! Error in eqiv. C code: "conditional 'lastprivate' on loop iterator 'i' ignored"
- !$omp parallel do collapse (3) lastprivate (conditional: i)
+ !$omp parallel do collapse (3) lastprivate (conditional: i) ! { dg-warning "conditional 'lastprivate' on loop iterator 'i' ignored" }
do i = 1, 32
do j = 1, 32
do k = 1, 32
end do
!$omp end parallel do
- ! Error in eqiv. C code: "conditional 'lastprivate' on loop iterator 'j' ignored"
- !$omp parallel do collapse (3) lastprivate (conditional: j)
+ !$omp parallel do collapse (3) lastprivate (conditional: j) ! { dg-warning "conditional 'lastprivate' on loop iterator 'j' ignored" }
do i = 1, 32
do j = 1, 32
do k = 1, 32
end do
!$omp end parallel do
- ! Error in eqiv. C code: "conditional 'lastprivate' on loop iterator 'k' ignored"
- !$omp parallel do collapse (3) lastprivate (conditional: k)
+ !$omp parallel do collapse (3) lastprivate (conditional: k) ! { dg-warning "conditional 'lastprivate' on loop iterator 'k' ignored" }
do i = 1, 32
do j = 1, 32
do k = 1, 32