Debian Codegraph @

gcc/testsuite/gfortran.dg/structure_constructor_17.f90

raw
1 ! { dg-do compile }
2 !
3 ! Test the fix for PR97612.
4 !
5 ! Contributed by Martin Stein <[email protected]>
6 !
7 program constructor_allocatable
8 implicit none
9
10 type :: s
11 integer, dimension(:), allocatable :: u
12 end type s
13
14 type :: t
15 type(s), dimension(:), allocatable :: x
16 end type t
17
18 type(t) :: a = t()
19 if (allocated (a%x)) stop 1
20
21 end program constructor_allocatable