1 ! RUN: %python %S/test_errors.py %s %flang_fc1
5 interface operator(.foo
.)
11 interface operator(.priv
.)
17 private
:: operator(.priv
.), operator(*)
19 integer function ifoo(x
, y
)
20 logical, intent(in
) :: x
, y
25 !ERROR: 'y' is PRIVATE in 'm1'
27 !ERROR: 'z' not found in module 'm1'
29 use m1
, operator(.localfoo
.) => operator(.foo
.)
30 !ERROR: 'OPERATOR(.bar.)' not found in module 'm1'
31 use m1
, operator(.localbar
.) => operator(.bar
.)
33 !ERROR: 'y' is PRIVATE in 'm1'
35 !ERROR: 'OPERATOR(.priv.)' is PRIVATE in 'm1'
36 use m1
, only
: operator(.priv
.)
37 !ERROR: 'OPERATOR(*)' is PRIVATE in 'm1'
38 use m1
, only
: operator(*)
39 !ERROR: 'z' not found in module 'm1'
41 !ERROR: 'z' not found in module 'm1'
42 use m1
, only
: my_x
=> z
43 use m1
, only
: operator(.foo
.)
44 !ERROR: 'OPERATOR(.bar.)' not found in module 'm1'
45 use m1
, only
: operator(.bar
.)
46 use m1
, only
: operator(-) , ifoo
47 !ERROR: 'OPERATOR(+)' not found in module 'm1'
48 use m1
, only
: operator(+)