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_7.f90] - Rev 694

Compare with Previous | Blame | View Log

! { dg-do compile }
!
! PR 44207: ICE with ALLOCATABLE components and SOURCE
!
! Contributed by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de>

program ice_prog

type::ice_type
  integer,dimension(:),allocatable::list
end type ice_type

type(ice_type)::this
integer::dim=10,i

allocate(this%list(dim),source=[(i,i=1,dim)])

end program ice_prog

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.