! { dg-do run }
! { dg-options "-fdump-tree-original" }
program main
  character (len=2) :: a, b
  character (kind=4,len=4) :: c,d
  a = 'ab'
  b = 'aa'
  if (a < b) call abort
  c = 4_"aaaa"
  d = 4_"aaab"
  if (c == d) call abort
  if (c > d) call abort
end program main
! { dg-final { scan-tree-dump-times "_gfortran_compare_string_char4" 1 "original" } }
! { dg-final { scan-tree-dump-times "__builtin_memcmp" 2 "original" } }
! { dg-final { cleanup-tree-dump "original" } }
