(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
pr71799.f90
! { dg-do compile }
subroutine test2(s)
integer(1) :: i
integer (8) :: s

do i = 10, HUGE(i) - 10, 222 ! { dg-error "overflow converting" }
  s = s + 1
end do

end subroutine test2