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 801
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