OSDN Git Service

PR debug/43329
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / func_derived_5.f90
1 ! { dg-do "compile" }
2 ! PR fortran/41369 - rejected empty type in function return values
3
4 module m
5  type t
6  end type t
7 end module
8
9 type(t) function foo()
10   use m
11   foo = t()
12 end function foo
13
14 ! { dg-final { cleanup-modules "m" } }