aboutsummaryrefslogtreecommitdiff
path: root/test/incremental/assert_function.16.zig
blob: eef113642324434c4af1723aac512a57192ce726 (plain)
1
2
3
4
5
6
7
8
9
10
11
const hello = "hello".*;
pub fn main() void {
    assert(hello[1] == 'e');
}

pub fn assert(ok: bool) void {
    if (!ok) unreachable; // assertion failure
}

// run
//