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

// error
// backend=stage2
// target=native
//
// :4:11: error: overflow of integer type 'i8' with value '128'