Debian Codegraph @

gcc/testsuite/gfortran.dg/pr53298.f90

raw
1 ! { dg-do run }
2
3 program test
4 character(len=5) :: str(3)
5 str = ["abcde", "12345", "ABCDE" ]
6 call f(str(:))
7 contains
8 subroutine f(x)
9 character(len=*) :: x(:)
10 write(*,*) x(:)(1:)
11 end subroutine f
12 end program test
13
14 ! { dg-output "abcde12345ABCDE" }