mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
13 lines
195 B
Zig
13 lines
195 B
Zig
pub fn main() void {
|
|
var x: usize = 5;
|
|
const y = mul(2, 3, x);
|
|
if (y - 30 != 0) unreachable;
|
|
}
|
|
|
|
inline fn mul(a: usize, b: usize, c: usize) usize {
|
|
return a * b * c;
|
|
}
|
|
|
|
// run
|
|
//
|