view gcc/testsuite/gfortran.dg/pr17229.f @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! PR fortran/17229
! { dg-do run }
! { dg-options "-std=legacy" }

      integer i
      logical l

      l = .false.
      i = -1
      if (l) if (i) 999,999,999

      l = .true.
      if (l) if (i) 10,999,999
      go to 999

   10 i = 0
      if (l) if (i) 999,20,999
      go to 999

   20 i = 1
      if (l) if (i) 999,999,30
      go to 999

  999 STOP 1
   30 end