mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
11 lines
166 B
Zig
11 lines
166 B
Zig
pub fn main() void {
|
|
const i: ?u64 = 0;
|
|
const result = i orelse 5;
|
|
assert(result == 0);
|
|
}
|
|
fn assert(b: bool) void {
|
|
if (!b) unreachable;
|
|
}
|
|
|
|
// run
|
|
//
|