mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
9 lines
180 B
Zig
9 lines
180 B
Zig
const builtin = @import("builtin");
|
|
|
|
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;
|
|
}
|