aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/string_5.f90
blob: ef291566b527f5fd8f25721c64071c909f1a6308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { 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