aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/div_overflow.zig
blob: c786e01c6be50ba779f47205ab3f1109b782c608 (plain)
1
2
3
4
5
6
7
8
9
comptime {
    const a = -128;
    const b: i8 = -1;
    _ = a / b;
}

// error
//
// :4:11: error: overflow of integer type 'i8' with value '128'