aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/shlExact_shifts_out_1_bits.zig
blob: b50cd5b6a155e1f0ceae8c075bd42bd759d53537 (plain)
1
2
3
4
5
6
7
8
9
10
comptime {
    const x = @shlExact(@as(u8, 0b01010101), 2);
    _ = x;
}

// error
// backend=stage2
// target=native
//
// :2:15: error: operation caused overflow