zig/doc/langref/test_comptime_remainder_division_by_zero.zig

9 lines
122 B
Zig

comptime {
const a: i32 = 10;
const b: i32 = 0;
const c = a % b;
_ = c;
}
// test_error=division by zero