2011-05-23 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / character_comparison_8.f90
blob54e31a6454b50629a0504a1769d3435ae78c0339
1 ! { dg-do run }
2 ! { dg-options "-O -fdump-tree-original" }
3 ! Check for compile-time optimization of LLE and friends.
4 program main
5 character(3) :: a
6 a = 'ab'
7 if (.not. LLE(a,a)) call abort
8 if (LLT(a,a)) call abort
9 if (.not. LGE(a,a)) call abort
10 if (LGT(a,a)) call abort
11 end program main
12 ! { dg-final { scan-tree-dump-times "gfortran_compare_string" 0 "original" } }
13 ! { dg-final { cleanup-tree-dump "original" } }