rt_gccstream/gcc/testsuite/gfortran.dg/interface_abstract_3.f90

12 lines
297 B
Fortran

! { dg-do compile }
! test for C1204 of Fortran 2003 standard:
! module procedure not allowed in abstract interface
module m
abstract interface
module procedure p ! { dg-error "must be in a generic module interface" }
end interface
contains
subroutine p()
end subroutine
end module m