1 ! RUN: %python %S/test_errors.py %s %flang_fc1
7 !ERROR: 's2' is not a module procedure
9 !ERROR: Procedure 's3' not found
11 !ERROR: Procedure 's1' is already specified in generic 'foo'
16 real, intent(in
) :: x
,y
18 complex function s2(x
,y
)
19 complex, intent(in
) :: x
,y
24 !ERROR: Procedure 's4' is already specified in generic 'bar'
27 generic
:: operator(.foo
.)=> s4
28 generic
:: operator(.foo
.)=> s2
29 !ERROR: Procedure 's4' is already specified in generic 'OPERATOR(.foo.)'
30 generic
:: operator(.foo
.)=> s4
35 integer function f(x
, y
)
36 logical, intent(in
) :: x
, y
39 generic
:: operator(+)=> f
40 !ERROR: Procedure 'f' is already specified in generic 'OPERATOR(+)'
41 generic
:: operator(+)=> f
45 interface operator(.ge
.)
48 interface operator(>=)
49 !ERROR: Procedure 'f' is already specified in generic 'OPERATOR(.GE.)'
52 generic
:: operator(>) => f
53 !ERROR: Procedure 'f' is already specified in generic 'OPERATOR(>)'
54 generic
:: operator(.gt
.) => f
56 logical function f(x
, y
) result(result
)
57 logical, intent(in
) :: x
, y