view libgomp/testsuite/libgomp.fortran/pr35130.f90 @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +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