aboutsummaryrefslogtreecommitdiff
path: root/test/cases/assert_function.13.zig
blob: 240abf0108dbe8c08040533524872e543fd6d621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub fn main() void {
    const ignore =
        \\ cool thx
        \\
    ;
    _ = ignore;
    add('ぁ', '\x03');
}

fn add(a: u32, b: u32) void {
    assert(a + b == 12356);
}

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

// run
//