1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
6 interface operator(.foo
.)
12 interface operator(.priv
.)
18 private
:: operator(.priv
.), operator(*)
20 integer function ifoo(x
, y
)
21 logical, intent(in
) :: x
, y
26 !ERROR: 'y' is PRIVATE in 'm1'
28 !ERROR: 'z' not found in module 'm1'
30 use m1
, operator(.localfoo
.) => operator(.foo
.)
31 !ERROR: 'OPERATOR(.bar.)' not found in module 'm1'
32 use m1
, operator(.localbar
.) => operator(.bar
.)
34 !ERROR: 'y' is PRIVATE in 'm1'
36 !ERROR: 'OPERATOR(.priv.)' is PRIVATE in 'm1'
37 use m1
, only
: operator(.priv
.)
38 !ERROR: 'OPERATOR(*)' is PRIVATE in 'm1'
39 use m1
, only
: operator(*)
40 !ERROR: 'z' not found in module 'm1'
42 !ERROR: 'z' not found in module 'm1'
43 use m1
, only
: my_x
=> z
44 use m1
, only
: operator(.foo
.)
45 !ERROR: 'OPERATOR(.bar.)' not found in module 'm1'
46 use m1
, only
: operator(.bar
.)
47 use m1
, only
: operator(-) , ifoo
48 !ERROR: 'OPERATOR(+)' not found in module 'm1'
49 use m1
, only
: operator(+)