summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/char_length_18.f90
blob: 9fd31c862d274c1113e74e4ff19b9df04cc5a81f (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! PR 45576 - no ICE for missing optional argument
! Test case supplied by Joost VandeVondele
SUBROUTINE get_r_val()
  INTEGER, PARAMETER :: default_string_length=128
  CHARACTER(len=default_string_length) :: c_val
  LOGICAL                              :: check 
  check = c_val(LEN_TRIM(c_val):LEN_TRIM(c_val))=="]"
END SUBROUTINE get_r_val