blob: 4b36b76ab21aef784c0e4fd6591a42ffe7f0f05e [file] [log] [blame]
! { dg-do compile }
! { dg-options "-w" }
! PR fortran/78739
! Code contributed Gerhard Steinmetz
function f(n)
f() = n ! { dg-error "conflicts with function name" }
end
function g()
g(x) = x ! { dg-error "conflicts with function name" }
end
function a() ! This should cause an error, but cannot be easily detected!
a() = x
end