[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / char_length_18.f90
blob9fd31c862d274c1113e74e4ff19b9df04cc5a81f
1 ! { dg-do compile }
2 ! PR 45576 - no ICE for missing optional argument
3 ! Test case supplied by Joost VandeVondele
4 SUBROUTINE get_r_val()
5 INTEGER, PARAMETER :: default_string_length=128
6 CHARACTER(len=default_string_length) :: c_val
7 LOGICAL :: check
8 check = c_val(LEN_TRIM(c_val):LEN_TRIM(c_val))=="]"
9 END SUBROUTINE get_r_val