OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.fortran/] [pr27916-1.f90] - Rev 273

Compare with Previous | Blame | View Log

! PR fortran/27916
! Test whether allocatable privatized arrays has "not currently allocated"
! status at the start of OpenMP constructs.
! { dg-do run }

program pr27916
  integer :: n, i
  logical :: r
  integer, dimension(:), allocatable :: a

  r = .false.
!$omp parallel do num_threads (4) private (n, a, i) &
!$omp & reduction (.or.: r) schedule (static)
  do n = 1, 16
    r = r .or. allocated (a)
    allocate (a (16))
    r = r .or. .not. allocated (a)
    do i = 1, 16
      a (i) = i
    end do
    deallocate (a)
    r = r .or. allocated (a)
  end do
 !$omp end parallel do
  if (r) call abort
end program pr27916

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.