pr35130.f90 355 B

123456789101112131415161718192021
  1. ! PR middle-end/35130
  2. program pr35130
  3. implicit none
  4. real, dimension(20) :: a
  5. integer :: k
  6. a(:) = 0.0
  7. !$omp parallel do private(k)
  8. do k=1,size(a)
  9. call inner(k)
  10. end do
  11. !$omp end parallel do
  12. if (any (a.ne.42)) call abort
  13. contains
  14. subroutine inner(i)
  15. implicit none
  16. integer :: i
  17. a(i) = 42
  18. end subroutine inner
  19. end program pr35130