2 ! { dg-options "-fdump-tree-original" }
4 ! PR 48700: memory leak with MOVE_ALLOC
6 ! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
10 integer, allocatable
:: ia(:), ja(:)
13 block
! For auto-dealloc, as PROGRAM implies SAVE
14 type(bar
), allocatable
:: sm
,sm2
17 allocate(sm
%ia(10),sm
%ja(10))
19 call move_alloc(sm2
,sm
)
23 ! { dg-final { scan-tree-dump-times "__builtin_free" 9 "original" } }