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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [allocate_alloc_opt_13.f90] - Rev 720

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

! { dg-do compile }
!
! PR fortran/51953
!
!
type t
end type t

class(t), allocatable :: a, c(:), e(:)
class(t), pointer :: b, d(:)

allocate (a, b, source=c(1))
allocate (c(4), d(6), source=e)

allocate (a, b, source=f())
allocate (c(1), d(6), source=g())

contains
function f()
  class(t), allocatable :: f
end function
function g()
  class(t), allocatable :: g(:)
end function
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.