test_comptime_divExact_remainder.zig (149B) - Raw
1 comptime { 2 const a: u32 = 10; 3 const b: u32 = 3; 4 const c = @divExact(a, b); 5 _ = c; 6 } 7 8 // test_error=exact division produced remainder
zigfork of https://codeberg.org/ziglang/zig | |
| Log | Files | Refs | README | LICENSE |