view libgomp/testsuite/libgomp.fortran/pr35130.f90 @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents a06113de4d67
children 84e7813d76e9
line wrap: on
line source

! PR middle-end/35130

program pr35130
  implicit none
  real, dimension(20) :: a
  integer :: k
  a(:) = 0.0
!$omp parallel do private(k)
  do k=1,size(a)
    call inner(k)
  end do
!$omp end parallel do
  if (any (a.ne.42)) call abort
contains
 subroutine inner(i)
   implicit none
   integer :: i
   a(i) = 42
 end subroutine inner
end program pr35130