view libgomp/testsuite/libgomp.fortran/allocatable5.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
children 84e7813d76e9
line wrap: on
line source

! PR fortran/42866
! { dg-do run }

program pr42866
  integer, allocatable :: a(:)
  allocate (a(16))
  a = 0
  !$omp parallel
    !$omp sections reduction(+:a)
      a = a + 1
    !$omp section
      a = a + 2
    !$omp end sections
  !$omp end parallel
  if (any (a.ne.3)) call abort
  deallocate (a)
end