mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
9 lines
148 B
Zig
9 lines
148 B
Zig
|
comptime {
|
||
|
assert(false);
|
||
|
}
|
||
|
fn assert(ok: bool) void {
|
||
|
if (!ok) unreachable; // assertion failure
|
||
|
}
|
||
|
|
||
|
// test_error=reached unreachable code
|