repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
allocatable_function_9.f90
blob
483c1ba278c0bb240fad297110eaeef525749426
1
! { dg-do run }
2
!
3
! PR fortran/55603
4
! Check that the allocatable result is properly freed after use.
5
!
6
! Contributed by Damian Rouson <damian@sourceryinstitute.org>
7
8
type
foo
9
end type
10
type
(
foo
)
a
11
a
=
bar
()
12
contains
13
function
bar
()
14
type
(
foo
),
allocatable
::
bar
15
allocate
(
bar
)
16
end function
17
end