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

21 lines
374 B
Fortran
Raw Normal View History

2017-04-10 11:32:00 +00:00
! PR fortran/71014
! { dg-do run }
! { dg-additional-options "-O0" }
program pr71014
implicit none
integer :: i, j
integer, parameter :: t = 100*101/2
integer :: s(16)
s(:) = 0
!$omp parallel do
do j = 1, 16
associate (k => j)
do i = 1, 100
s(j) = s(j) + i
end do
end associate
end do
2018-12-28 15:30:48 +00:00
if (any(s /= t)) STOP 1
2017-04-10 11:32:00 +00:00
end program pr71014