2 ! { dg-options "-fcheck=all" }
6 ! Contributed by Salvatore Filippone
13 class(inner
), allocatable
:: item
17 class(outer
), allocatable
:: item
21 type(container
), allocatable
:: v(:)
26 subroutine testfinal(var
)
28 type(maintype
), intent(inout
) :: var
29 ! A real code would obviously check
30 ! this is really allocated
31 deallocate(var
%v(1)%item
%item
)
32 end subroutine testfinal