Commit d24a1f53 by Mikael Morin

Add PR fortran/55603 working test

gcc/testsuite/
	PR fortran/55603
	* gfortran.dg/allocatable_function_9.f90: New.

From-SVN: r228151
parent 9f85af26
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
......
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment