diff options
author | mikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-25 20:28:33 +0000 |
---|---|---|
committer | mikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-25 20:28:33 +0000 |
commit | 754752e035fca30453a9eb9b61d47308685e359c (patch) | |
tree | c43a4dcbd05d8ec2c9cc7e3503024d6859c9742e | |
parent | 872343ee30772fd164c0b1758ce21472d8e0f83b (diff) | |
download | gcc-754752e035fca30453a9eb9b61d47308685e359c.tar.gz |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/allocatable_function_9.f90 | 17 |
2 files changed, 22 insertions, 0 deletions
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 <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 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 <damian@sourceryinstitute.org> + + type foo + end type + type(foo) a + a = bar() +contains + function bar() + type(foo), allocatable :: bar + allocate(bar) + end function +end |