mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-08 05:54:40 +00:00
16 lines
209 B
Fortran
16 lines
209 B
Fortran
|
! 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
|
||
|
if (k .ne. 100) call abort
|
||
|
end
|