about summary refs log tree commit diff
path: root/src/tools/miri/tests/panic/overflowing-rsh-2.rs
blob: 19d16e7bc84a2e3117977e7ec0b4bd03f894fa6a (plain)
1
2
3
4
5
6
#![allow(arithmetic_overflow)]

fn main() {
    // Make sure we catch overflows that would be hidden by first casting the RHS to u32
    let _n = 1i64 >> (u32::MAX as i64 + 1);
}