blob: 81c0286c4f6b2cf5c84a41f7bbe1c6ddb1f10f45 [file] [log] [blame]
! { dg-do compile }
! PR 70260 - this used to ICE
! Original test case by Gernard Steinmetz
subroutine s (f)
integer, external :: f, g
integer :: h
g = f(2) ! { dg-error "Illegal assignment to external procedure" }
h = g(2)
end