summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr15164.f90
blob: f8098710beec9aa3b054535c048c7a8e1abf6fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do compile }
! I couldn't reproduce the failure with a compiler built from the
! 2004-09-26 sources
      module specfiles
      contains
      subroutine split(instring,outstrings,lenout,n,i)
      integer(kind=4),intent(in) :: lenout,n
      character(len=*),intent(in) :: instring
      character(len=lenout),dimension(n),intent(out) :: outstrings
      integer(kind=4) :: i,j,k
      j=1; k=1
       outstrings(j)(k:k)=instring(i:i)
      return
      end subroutine split
      end module specfiles

! { dg-final { cleanup-modules "specfiles" } }