diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/logical_comp.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/logical_comp.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/logical_comp.f90 b/gcc/testsuite/gfortran.dg/logical_comp.f90 new file mode 100644 index 000000000..bbf81260b --- /dev/null +++ b/gcc/testsuite/gfortran.dg/logical_comp.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! PR fortran/22503, PR fortran/32899 +! Suggest use of appropriate comparison operator + +program foo + logical :: b + b = b .eq. b ! { dg-error "must be compared with" } + b = b .ne. b ! { dg-error "must be compared with" } +end program |