2 ! { dg-options "-fdump-tree-original" }
4 ! PR 49466: [4.6/4.7 Regression] Memory leak with assignment of extended derived types
6 ! Contributed by Rich Townsend <townsend@astro.wisc.edu>
13 real, allocatable :: U(:)
16 type, extends(state_t) :: astate_t
19 block ! New scoping unit as "a"/"b" are otherwise implicitly SAVEd
28 ! { dg-final { scan-tree-dump-times "__builtin_free" 3 "original" } }
29 ! { dg-final { cleanup-tree-dump "original" } }