1! RUN: %B/test/Semantics/test_errors.sh %s %flang %t
2module m
3  real :: var
4  interface i
5    !ERROR: 'var' is not a subprogram
6    procedure :: sub, var
7    !ERROR: Procedure 'bad' not found
8    procedure :: bad
9  end interface
10  interface operator(.foo.)
11    !ERROR: 'var' is not a subprogram
12    procedure :: sub, var
13    !ERROR: Procedure 'bad' not found
14    procedure :: bad
15  end interface
16contains
17  subroutine sub
18  end
19end
20
21subroutine s
22  interface i
23    !ERROR: 'sub' is not a module procedure
24    module procedure :: sub
25  end interface
26  interface assignment(=)
27    !ERROR: 'sub' is not a module procedure
28    module procedure :: sub
29  end interface
30contains
31  subroutine sub(x, y)
32    real, intent(out) :: x
33    logical, intent(in) :: y
34  end
35end
36