PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / alloc_comp_constructor_7.f90
blob45d82726ae05a1bec16404df1fa4efc0e3a08dcb
1 ! { dg-do run }
3 ! PR 60357: [F08] structure constructor with unspecified values for allocatable components
5 ! Contributed by Antony Lewis <antony@cosmologist.info>
7 Type A
8 integer :: X = 1
9 integer, allocatable :: y
10 integer, allocatable :: z(:)
11 end type
13 Type(A) :: Me = A(X=1)
15 if (allocated(Me%y)) call abort
16 if (allocated(Me%z)) call abort
18 end