zig/test/behavior/decltest.zig

8 lines
143 B
Zig
Raw Normal View History

2022-01-28 04:23:28 +08:00
pub fn the_add_function(a: u32, b: u32) u32 {
return a + b;
}
test the_add_function {
if (the_add_function(1, 2) != 3) unreachable;
}