ieee_9.f90: XFAIL on arm*-*-gnueabi[hf].
[official-gcc.git] / gcc / testsuite / gfortran.dg / move_alloc_4.f90
blob71b1f874473f5d4bb948e91411a486ff07f022d6
1 ! { dg-do run }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR 48700: memory leak with MOVE_ALLOC
6 ! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
8 program testmv3
9 type bar
10 integer, allocatable :: ia(:), ja(:)
11 end type
13 block ! For auto-dealloc, as PROGRAM implies SAVE
14 type(bar), allocatable :: sm,sm2
16 allocate(sm)
17 allocate(sm%ia(10),sm%ja(10))
19 call move_alloc(sm2,sm)
20 end block
21 end program testmv3
23 ! { dg-final { scan-tree-dump-times "__builtin_free" 9 "original" } }