1! { dg-do compile }
2program test
3
4  ! PR fortran/48876 - this used to segfault.
5  ! Test case contributed by mhp77 (a) gmx.at.
6  character ::  string =  "string"( : -1 )
7
8  ! PR fortran/50409
9  character v(3)
10  v = (/ ('123'(i:1), i = 3, 1, -1) /)
11  print *, v
12
13end program test
14
15