PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / alloc_comp_class_2.f90
blob5aff3381650150df4dc1378d0a3ba19f9d0b3c1c
1 ! { dg-do run }
3 ! PR 46838: [OOP] Initialization of polymorphic allocatable components
5 ! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
7 program bug28
9 implicit none
11 type indx_map
12 end type
14 type desc_type
15 integer, allocatable :: matrix_data
16 class(indx_map), allocatable :: indxmap
17 end type
19 type(desc_type) :: desc_a
20 call cdall(desc_a)
22 contains
24 subroutine cdall(desc)
25 type(desc_type), intent(out) :: desc
26 if (allocated(desc%indxmap)) STOP 1
27 end subroutine cdall
29 end program