blob: 56e68587037b12f23d81e5dee7a3274ce910392f [file] [log] [blame]
! { dg-do compile }
!
! PR fortran/48858
! PR fortran/55465
!
! Was rejected before but it perfectly valid
!
module m
interface
subroutine f() bind(C, name="func")
end subroutine
end interface
contains
subroutine sub()
call f()
end subroutine
end module m
module m2
interface
subroutine g() bind(C, name="func")
end subroutine
end interface
contains
subroutine sub2()
call g()
end subroutine
end module m2