aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/test_comptime_shrExact_overflow.zig
blob: 362bd015a0a227716254daac6951e760d65f3e4d (plain)
1
2
3
4
5
6
comptime {
    const x = @shrExact(@as(u8, 0b10101010), 2);
    _ = x;
}

// test_error=exact shift shifted out 1 bits