Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/allocate_alloc_opt_7.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { 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