blob: 87850cf40eb37a356df333dcfec80fbe3accef8d [file] [log] [blame]
! { 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)
print *, i
end do
end program test
! { dg-output "Fortran runtime error: Loop iterates infinitely" }