zig/test/cases/multiplying_numbers_at_runtime_and_comptime.0.zig

12 lines
152 B
Zig
Raw Normal View History

pub fn main() void {
mul(3, 4);
}
fn mul(a: u32, b: u32) void {
if (a * b != 12) unreachable;
}
// run
// target=x86_64-linux,x86_64-macos
//