Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_alloc_opt_7.f90
blobe77f6b7c6380b56a508c6f3ad165eb35646aa346
1 ! { dg-do compile }
3 ! PR 44207: ICE with ALLOCATABLE components and SOURCE
5 ! Contributed by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de>
7 program ice_prog
9 type::ice_type
10 integer,dimension(:),allocatable::list
11 end type ice_type
13 type(ice_type)::this
14 integer::dim=10,i
16 allocate(this%list(dim),source=[(i,i=1,dim)])
18 end program ice_prog