zig/test/cases/multiplying_numbers_at_runtime_and_comptime.1.zig

13 lines
140 B
Zig
Raw Normal View History

pub fn main() void {
if (x - 12 != 0) unreachable;
}
fn mul(a: u32, b: u32) u32 {
return a * b;
}
const x = mul(3, 4);
// run
//