1 ! RUN: %python %S/test_errors.py %s %flang -flogical-abbreviations -fxor-operator
3 ! Like m4 in resolve63 but compiled with different options.
4 ! Alternate operators are enabled so treat these as intrinsic.
10 !ERROR: Operands of .AND. must be LOGICAL; have REAL(4) and REAL(4)
12 !ERROR: Operands of .OR. must be LOGICAL; have REAL(4) and REAL(4)
14 !ERROR: Operand of .NOT. must be LOGICAL; have REAL(4)
16 !ERROR: Operands of .NEQV. must be LOGICAL; have REAL(4) and REAL(4)
18 !ERROR: Operands of .NEQV. must be LOGICAL; have REAL(4) and REAL(4)
23 ! Like m4 in resolve63 but compiled with different options.
24 ! Alternate operators are enabled so treat .A. as .AND.
26 interface operator(.A
.)
27 logical function f1(x
, y
)
28 integer, intent(in
) :: x
, y
31 interface operator(.and
.)
32 logical function f2(x
, y
)
33 real, intent(in
) :: x
, y
37 subroutine s1(x
, y
, z
)
40 !ERROR: Operands of .AND. must be LOGICAL; have COMPLEX(4) and COMPLEX(4)
42 !ERROR: Operands of .AND. must be LOGICAL; have COMPLEX(4) and COMPLEX(4)