OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [allocatable3.f90] - Rev 740

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do run }

  integer, allocatable :: a(:)
  integer :: i
  logical :: l
  l = .false.
  if (allocated (a)) call abort
!$omp parallel private (a) reduction (.or.:l)
  allocate (a (-7:-5))
  l = l.or..not.allocated (a)
  l = l.or.size(a).ne.3.or.size(a,1).ne.3
  a(:) = 0
  !$omp do private (a)
  do i = 1, 7
    a(:) = i
    l = l.or.any (a.ne.i)
  end do
  l = l.or.any (a.ne.0)
  deallocate (a)
!$omp end parallel
end

Go to most recent revision | 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.