mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 00:52:52 +00:00
19 lines
281 B
Zig
19 lines
281 B
Zig
|
test "nested break" {
|
||
|
outer: while (true) {
|
||
|
while (true) {
|
||
|
break :outer;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
test "nested continue" {
|
||
|
var i: usize = 0;
|
||
|
outer: while (i < 10) : (i += 1) {
|
||
|
while (true) {
|
||
|
continue :outer;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// test
|