summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr17164.f90
blob: c9b4d4537d7bd8e5d1cff2e4f750369568512f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do run }
! { dg-options "-std=legacy" }
!
! pr17164
! index aborts when substring is longer than string
      implicit none
      character*5 x
      integer i
      x='12345'
      i=index(x,'blablabl')
      if (i.ne.0) call abort
      end