You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
644 B
36 lines
644 B
4 months ago
|
! RUN: %S/test_errors.sh %s %t %f18
|
||
|
module m
|
||
|
interface a
|
||
|
subroutine s(x)
|
||
|
real :: x
|
||
|
end subroutine
|
||
|
!ERROR: 's' is already declared in this scoping unit
|
||
|
subroutine s(x)
|
||
|
integer :: x
|
||
|
end subroutine
|
||
|
end interface
|
||
|
end module
|
||
|
|
||
|
module m2
|
||
|
interface s
|
||
|
subroutine s(x)
|
||
|
real :: x
|
||
|
end subroutine
|
||
|
!ERROR: 's' is already declared in this scoping unit
|
||
|
subroutine s(x)
|
||
|
integer :: x
|
||
|
end subroutine
|
||
|
end interface
|
||
|
end module
|
||
|
|
||
|
module m3
|
||
|
interface s
|
||
|
subroutine s
|
||
|
end
|
||
|
end interface
|
||
|
contains
|
||
|
!ERROR: 's' is already declared in this scoping unit
|
||
|
subroutine s
|
||
|
end subroutine
|
||
|
end
|