zig/test/cases/binary_operands.10.zig

14 lines
197 B
Zig

pub fn main() void {
var i: u32 = 5;
i *= 7;
var result: u32 = foo(i, 10);
if (result != 350) unreachable;
return;
}
fn foo(x: u32, y: u32) u32 {
return x * y;
}
// run
//