From: mikael Date: Fri, 25 Sep 2015 20:28:33 +0000 (+0000) Subject: Add PR fortran/55603 working test X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=754752e035fca30453a9eb9b61d47308685e359c;p=thirdparty%2Fgcc.git Add PR fortran/55603 working test gcc/testsuite/ PR fortran/55603 * gfortran.dg/allocatable_function_9.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228151 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 30bd3a264b43..248f933ac1ea 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 000000000000..483c1ba278c0 --- /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