zig/test/cases/binary_operands.14.zig

14 lines
206 B
Zig

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