Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
doc
langref
test_unreachable.zig
pretty
plain
permalink
blame
history
•
11 lines
•
208 B
1
// unreachable is used to assert that control flow will never reach a
2
// particular location:
3
test "basic math" {
4
const x = 1;
5
const y = 2;
6
if (x + y != 3) {
7
unreachable;
8
}
9
}
10
11
// test