summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/func_derived_5.f90
blob: 76d45a883d82a50c9abe8a8ed94868c10d304fdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
! PR fortran/41369 - rejected empty type in function return values

module m
 type t
 end type t
end module

type(t) function foo()
  use m
  foo = t()
end function foo

! { dg-final { cleanup-modules "m" } }