summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/do_check_1.f90
blob: 94d8a848810cea173f7ce1d0a976a277160f6c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-do run }
! { dg-options "-fcheck=do" }
! { dg-shouldfail "DO check" }
!
! PR fortran/34656
! Run-time check for zero STEP
!
program test
  implicit none
  integer :: i,j
  j = 0
  do i = 1, 40, j
    print *, i
  end do
end program test
! { dg-output "Fortran runtime error: DO step value is zero" }