1 ! RUN: %python %S/test_errors.py %s %flang_fc1
3 !ERROR: Logical constant '.true.' may not be used as a defined operator
4 interface operator(.TRUE
.)
6 !ERROR: Logical constant '.false.' may not be used as a defined operator
7 generic
:: operator(.false
.) => bar
14 interface operator(.foo
.)
17 interface operator(.ge
.)
21 integer function foo(x
, y
)
22 logical, intent(in
) :: x
, y
25 logical function bar(x
, y
)
26 complex, intent(in
) :: x
, y
31 !ERROR: Intrinsic operator '.le.' may not be used as a defined operator
32 use m2
, only
: operator(.le
.) => operator(.ge
.)
33 !ERROR: Intrinsic operator '.not.' may not be used as a defined operator
34 use m2
, only
: operator(.not
.) => operator(.foo
.)
35 !ERROR: Logical constant '.true.' may not be used as a defined operator
36 use m2
, only
: operator(.true
.) => operator(.foo
.)