blob: 1d26236e2d8efe8513134b42bf8a3178b27549a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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
|