2 ! { dg-additional-options "-fdump-tree-original" }
3 ! PR 94361 - this left open some memory leaks. Original test case by
11 FINAL
:: finalizer
!No leak if this line is commented
12 end type TypeWithFinal
15 real, dimension(:), allocatable
:: Dat
16 Type(TypeWithFinal
) :: X
26 type(TestType2
) :: Test
28 allocate(Test
%T
%Dat(1000))
31 subroutine finalizer(this
)
32 Type(TypeWithFinal
) :: this
33 end subroutine finalizer
48 ! { dg-final { scan-tree-dump-times "__builtin_free\\ \\(ptr2" 2 "original" } }