Retro68/gcc/libgomp/testsuite/libgomp.fortran/pr25219.f90

16 lines
205 B
Fortran
Raw Normal View History

2012-03-27 23:13:14 +00:00
! PR fortran/25219
implicit none
save
integer :: i, k
k = 3
!$omp parallel
!$omp do lastprivate (k)
do i = 1, 100
k = i
end do
!$omp end do
!$omp end parallel
2018-12-28 15:30:48 +00:00
if (k .ne. 100) STOP 1
2012-03-27 23:13:14 +00:00
end