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