Retro68/gcc/gcc/testsuite/gfortran.dg/interface_38.f90
2017-04-10 13:32:00 +02:00

17 lines
333 B
Fortran

! { dg-do compile }
! PR69397
program p
interface f
procedure f1 ! { dg-error "neither function nor subroutine" }
!... more
end interface
integer, allocatable :: z
print *, f(z) ! { dg-error "no specific function" }
contains
integer function f2 (x)
integer, allocatable :: x
f2 = 1
end
end