zig/test/behavior/decltest.zig
2023-05-11 20:31:52 +02:00

12 lines
255 B
Zig

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;
}