1! RUN: %B/test/Semantics/test_errors.sh %s %flang %t
2module m
3  interface a
4    subroutine s(x)
5      real :: x
6    end subroutine
7    !ERROR: 's' is already declared in this scoping unit
8    subroutine s(x)
9      integer :: x
10    end subroutine
11  end interface
12end module
13
14module m2
15  interface s
16    subroutine s(x)
17      real :: x
18    end subroutine
19    !ERROR: 's' is already declared in this scoping unit
20    subroutine s(x)
21      integer :: x
22    end subroutine
23  end interface
24end module
25