diff --git a/test/ranges.jl b/test/ranges.jl index 23b45ba068034..6fab035136cda 100644 --- a/test/ranges.jl +++ b/test/ranges.jl @@ -438,6 +438,13 @@ end end @test s == 256 + s = 0 + for i = typemin(UInt):one(UInt8):typemax(UInt) + i == 10 && break + s += 1 + end + @test s == 10 + # loops past typemax(Int) n = 0 s = Int128(0)