742fae059b
PR fortran/28390 * trans-openmp.c (gfc_trans_omp_do): Look for LASTPRIVATE in code->exp.omp_clauses rather than in the 3rd function argument. * testsuite/libgomp.fortran/pr28390.f: New test. From-SVN: r115504
9 lines
161 B
Fortran
9 lines
161 B
Fortran
! PR fortran/28390
|
|
program pr28390
|
|
integer i
|
|
!$omp parallel do lastprivate(i)
|
|
do i=1,100
|
|
end do
|
|
if (i.ne.101) call abort
|
|
end
|