2 ! { dg-options "-fdump-tree-original" }
4 ! PR 47637: [OOP] Memory leak involving INTENT(OUT) CLASS argument w/ allocatable components
6 ! Contributed by Rich Townsend <townsend@astro.wisc.edu>
11 integer, allocatable
:: i(:)
14 block
! New block as the main program implies SAVE
23 class(t
), intent(out
) :: x
29 ! { dg-final { scan-tree-dump-times "__builtin_free" 4 "original" } }
30 ! { dg-final { scan-tree-dump-times "x->_vptr->_final \\(" 1 "original" } }