zig/test/cases/multiplying_numbers_at_runtime_and_comptime.2.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
//