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

// error
// backend=stage2
// target=native
//
// :2:20: error: shift by negative amount '-1'