view gcc/testsuite/gfortran.dg/string_5.f90 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
program test

  ! PR fortran/48876 - this used to segfault.
  ! Test case contributed by mhp77 (a) gmx.at.
  character ::  string =  "string"( : -1 )

  ! PR fortran/50409
  character v(3)
  v = (/ ('123'(i:1), i = 3, 1, -1) /) 
  print *, v

end program test