2013-08-09 Janus Weil <janus@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_intrinsic_6.f90
blobe76bc49aeda70c9ba9db3dbc2c37414f4a022d60
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" } }
20 ! { dg-final { cleanup-tree-dump "original" } }