mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
14 lines
197 B
Zig
14 lines
197 B
Zig
pub fn main() void {
|
|
var i: u32 = 5;
|
|
i *= 7;
|
|
var result: u32 = foo(i, 10);
|
|
if (result != 350) unreachable;
|
|
return;
|
|
}
|
|
fn foo(x: u32, y: u32) u32 {
|
|
return x * y;
|
|
}
|
|
|
|
// run
|
|
//
|