gcc/testsuite/
PR fortran/55603
* gfortran.dg/allocatable_function_9.f90: New.
From-SVN: r228151
+2015-09-25 Mikael Morin <mikael@gcc.gnu.org>
+
+ PR fortran/55603
+ * gfortran.dg/allocatable_function_9.f90: New.
+
2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
PR target/67675
--- /dev/null
+! { dg-do run }
+!
+! PR fortran/55603
+! Check that the allocatable result is properly freed after use.
+!
+! Contributed by Damian Rouson <damian@sourceryinstitute.org>
+
+ type foo
+ end type
+ type(foo) a
+ a = bar()
+contains
+ function bar()
+ type(foo), allocatable :: bar
+ allocate(bar)
+ end function
+end