view gcc/testsuite/gfortran.dg/index_3.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

! { dg-do run }
! PR 91651 - this used to give an ICE.
! Bug report by Gerhard Steinmetz.
program p
   integer :: z(2)
   z = index('100101', '10', [.false.,.true.],kind=4)
   if (z(1) /= 1 .or. z(2) /= 4) stop 1
end