PR middle-end/77674
[official-gcc.git] / gcc / testsuite / gfortran.dg / string_5.f90
blobef291566b527f5fd8f25721c64071c909f1a6308
1 ! { dg-do compile }
2 program test
4 ! PR fortran/48876 - this used to segfault.
5 ! Test case contributed by mhp77 (a) gmx.at.
6 character :: string = "string"( : -1 )
8 ! PR fortran/50409
9 character v(3)
10 v = (/ ('123'(i:1), i = 3, 1, -1) /)
11 print *, v
13 end program test