Retro68/gcc/gcc/testsuite/gfortran.dg/string_5.f90
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

15 lines
281 B
Fortran

! { 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