zig/test/cases/binary_operands.14.zig

14 lines
208 B
Zig
Raw Normal View History

2022-04-27 21:59:55 +01:00
pub fn main() void {
var i: u32 = 352;
i /= 7; // i = 50
const result: u32 = foo(i, 7);
2022-04-27 21:59:55 +01:00
if (result != 7) unreachable;
return;
}
fn foo(x: u32, y: u32) u32 {
return x / y;
}
// run
//