blob: 35176deedabca483e35e008321957a171c892a48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
! { dg-do compile }
!
! PR fortran/31600
!
module a
implicit none
contains
integer function bar()
bar = 42
end function
end module a
use a ! { dg-error "Symbol 'bar' at \\(1\\) conflicts with symbol from module 'a'" }
implicit none
integer :: bar ! { dg-error "Symbol 'bar' at \\(1\\) conflicts with symbol from module 'a'" }
end
! { dg-final { cleanup-modules "a" } }
|