aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr53298.f90
blob: 998f88df926bd0f0727140174f841aae15c2961e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do run }

program test
  character(len=5) :: str(3)
  str = ["abcde", "12345", "ABCDE" ]
  call f(str(:))
contains
  subroutine f(x)
    character(len=*) :: x(:)
    write(*,*) x(:)(1:) 
  end subroutine f
end program test

! { dg-output "abcde12345ABCDE" }