* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_derived_5.f90
blob70d63aa1a4646bf4ae43d7ecd35aa746b7a3668f
1 ! { dg-do run }
3 ! PR 45828: [4.6 Regression] No default initialization of derived type members?
5 ! Contributed by Juha <jpr@csc.fi>
7 program fail1
8 type a
9 integer :: i
10 end type a
12 type b
13 type(a) :: acomp = a(5)
14 end type b
16 type(b), allocatable :: c(:)
18 allocate(c(1))
19 if (c(1) % acomp % i /= 5) call abort()
20 end program fail1