mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 19:49:32 +00:00
20 lines
306 B
Fortran
20 lines
306 B
Fortran
! PR middle-end/27416
|
|
! { dg-do run }
|
|
|
|
integer :: j
|
|
j = 6
|
|
!$omp parallel num_threads (4)
|
|
call foo (j)
|
|
!$omp end parallel
|
|
if (j.ne.6+16) STOP 1
|
|
end
|
|
|
|
subroutine foo (j)
|
|
integer :: i, j
|
|
|
|
!$omp do firstprivate (j) lastprivate (j)
|
|
do i = 1, 16
|
|
if (i.eq.16) j = j + i
|
|
end do
|
|
end subroutine foo
|