mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
11 lines
231 B
Zig
11 lines
231 B
Zig
const std = @import("std");
|
|
|
|
pub fn main() void {
|
|
var spartan_count: u16 = 300; // runtime-known
|
|
_ = &spartan_count;
|
|
const byte: u8 = @intCast(spartan_count);
|
|
std.debug.print("value: {}\n", .{byte});
|
|
}
|
|
|
|
// exe=fail
|