mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 01:23:17 +00:00
9 lines
186 B
Zig
9 lines
186 B
Zig
const std = @import("std");
|
|
|
|
test "nested breaks to same labeled block" {
|
|
const a = blk: {
|
|
break :blk break :blk @as(u32, 1);
|
|
};
|
|
try std.testing.expectEqual(a, 1);
|
|
}
|