mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
8 lines
143 B
Zig
8 lines
143 B
Zig
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;
|
|
}
|