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