Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / resolve98.f90
blob108bfdaed066e5e7d2131aa29ff6f16764929493
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Errors when comparing LOGICAL operands
4 program testCompare
5 logical flag1, flag2
6 if (flag1 .eqv. .false.) continue
7 if (flag1 .neqv. flag2) continue
8 !ERROR: LOGICAL operands must be compared using .EQV. or .NEQV.
9 if (flag1 .eq. .false.) continue
10 !ERROR: LOGICAL operands must be compared using .EQV. or .NEQV.
11 if (flag1 .ne. flag2) continue
12 end program testCompare