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

// error
//
// :2:20: error: shift by negative amount '-1'