aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/do_check_12.f90
blob: 71edace0fd856a82a071ce3516904b73f74c8243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do run }
! { dg-options "-fcheck=do" }
! { dg-shouldfail "DO check" }
!
program test
  implicit none
  integer(1) :: i
  do i = -HUGE(i)+10, -HUGE(i)-1, -1
    print *, i
  end do
end program test
! { dg-output "Fortran runtime error: Loop iterates infinitely" }