From: Mikael Morin Date: Fri, 25 Sep 2015 20:28:33 +0000 (+0000) Subject: Add PR fortran/55603 working test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d24a1f53db4fc4dcaec148b5a2310921c48e2ff7;p=gcc.git Add PR fortran/55603 working test gcc/testsuite/ PR fortran/55603 * gfortran.dg/allocatable_function_9.f90: New. From-SVN: r228151 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 30bd3a264b4..248f933ac1e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-09-25 Mikael Morin + + PR fortran/55603 + * gfortran.dg/allocatable_function_9.f90: New. + 2015-09-25 Oleg Endo PR target/67675 diff --git a/gcc/testsuite/gfortran.dg/allocatable_function_9.f90 b/gcc/testsuite/gfortran.dg/allocatable_function_9.f90 new file mode 100644 index 00000000000..483c1ba278c --- /dev/null +++ b/gcc/testsuite/gfortran.dg/allocatable_function_9.f90 @@ -0,0 +1,17 @@ +! { dg-do run } +! +! PR fortran/55603 +! Check that the allocatable result is properly freed after use. +! +! Contributed by Damian Rouson + + type foo + end type + type(foo) a + a = bar() +contains + function bar() + type(foo), allocatable :: bar + allocate(bar) + end function +end