summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/character_comparison_8.f90
blob: 2cc1a3057bd9f52f8392eff82d68cc991ffea206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do run }
! { dg-options "-O -fdump-tree-original" }
! Check for compile-time optimization of LLE and friends.
program main
  character(3) :: a
  a = 'ab'
  if (.not. LLE(a,a)) STOP 1
  if (LLT(a,a)) STOP 2
  if (.not. LGE(a,a)) STOP 3
  if (LGT(a,a)) STOP 4
end program main
! { dg-final { scan-tree-dump-times "gfortran_compare_string" 0 "original" } }