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

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