zig/doc/langref/test_without_setEvalBranchQuota_builtin.zig

9 lines
153 B
Zig
Raw Normal View History

test "foo" {
comptime {
var i = 0;
while (i < 1001) : (i += 1) {}
}
}
// test_error=evaluation exceeded 1000 backwards branches