gcc/testsuite/gfortran.dg/character_comparison_8.f90
raw| 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)) STOP 1 |
| 8 | if (LLT(a,a)) STOP 2 |
| 9 | if (.not. LGE(a,a)) STOP 3 |
| 10 | if (LGT(a,a)) STOP 4 |
| 11 | end program main |
| 12 | ! { dg-final { scan-tree-dump-times "gfortran_compare_string" 0 "original" } } |
| 13 |