mirror of
https://github.com/ziglang/zig.git
synced 2024-12-13 23:00:57 +00:00
12 lines
208 B
Zig
12 lines
208 B
Zig
// unreachable is used to assert that control flow will never reach a
|
|
// particular location:
|
|
test "basic math" {
|
|
const x = 1;
|
|
const y = 2;
|
|
if (x + y != 3) {
|
|
unreachable;
|
|
}
|
|
}
|
|
|
|
// test
|