blob: 86b47e03340fa7e5d55dd0d6514f33fa53778b0a [file] [log] [blame]
! { dg-do compile }
! PR fortran/104351
! Contributed by G.Steinmetz
program p
implicit none
type t
end type
type(t) :: f
contains
real function f() result(z) ! { dg-error "has an explicit interface" }
z = 0.0 ! { dg-error "assignment" }
end function f ! { dg-error "Expecting END PROGRAM" }
end