mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 01:22:50 +00:00
14 lines
206 B
Zig
14 lines
206 B
Zig
pub fn main() void {
|
|
var i: u32 = 352;
|
|
i /= 7; // i = 50
|
|
var result: u32 = foo(i, 7);
|
|
if (result != 7) unreachable;
|
|
return;
|
|
}
|
|
fn foo(x: u32, y: u32) u32 {
|
|
return x / y;
|
|
}
|
|
|
|
// run
|
|
//
|