mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +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
|