PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_intrinsic_6.f90
blobd07ac31c4cdca52c7192164b03742c0700d7056c
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR 58058: [4.7/4.8/4.9 Regression] Memory leak with transfer function
6 ! Contributed by Thomas Jourdan <thomas.jourdan@orange.fr>
8 implicit none
10 integer, dimension(3) :: t1
11 character(len=64) :: str
13 t1 = (/1,2,3/)
15 str = transfer(t1,str)
17 end
19 ! { dg-final { scan-tree-dump-times "__builtin_free" 1 "original" } }