view gcc/testsuite/gfortran.dg/assumed_rank_18.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
line wrap: on
line source

! { dg-do run }
! PR 91643 - this used to cause an ICE.
! Original test case by Gerhard Steinmetz.
program p
   real :: z(3) = [1.0, 2.0, 3.0]
   call g(z)
contains
   subroutine g(x)
      real :: x(..)
      call h(x)
   end
   subroutine h(x)
      real :: x(*)
      if (x(1) /= 1.0) stop 1
   end
end