blob: 56e68587037b12f23d81e5dee7a3274ce910392f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
! { 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
|