aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/decltest.zig
blob: 7aa8fb631880731edd452d3578322509e2576d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
const builtin = @import("builtin");

pub fn the_add_function(a: u32, b: u32) u32 {
    return a + b;
}

test the_add_function {
    if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;

    if (the_add_function(1, 2) != 3) unreachable;
}