aboutsummaryrefslogtreecommitdiff
path: root/test/incremental/assert_function.14.zig
blob: d25100dccee2bda1f615c2d870ee477c1252bed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub fn main() void {
    add(aa, bb);
}

const aa = 'ぁ';
const bb = '\x03';

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

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

// run
//