mirror of
https://github.com/ziglang/zig.git
synced 2025-12-14 02:03:08 +00:00
12 lines
220 B
Zig
12 lines
220 B
Zig
const std = @import("std");
|
|
|
|
test {
|
|
const T = comptime b: {
|
|
break :b @Type(.{ .Int = .{
|
|
.signedness = .unsigned,
|
|
.bits = 8,
|
|
} });
|
|
};
|
|
try std.testing.expect(T == u8);
|
|
}
|