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" } }