summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/assign_11.f90
blob: 81c0286c4f6b2cf5c84a41f7bbe1c6ddb1f10f45 (plain)
1
2
3
4
5
6
7
8
9
! { 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