mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
13 lines
201 B
Zig
13 lines
201 B
Zig
pub fn main() void {
|
|
var i: u64 = 0xFFEEDDCCBBAA9988;
|
|
_ = &i;
|
|
assert(i == 0xFFEEDDCCBBAA9988);
|
|
}
|
|
|
|
pub fn assert(ok: bool) void {
|
|
if (!ok) unreachable; // assertion failure
|
|
}
|
|
|
|
// run
|
|
//
|