]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/panic/overflowing-rsh-2.rs
Rollup merge of #102037 - jyn514:normalize-docs, r=lcnr
[rust.git] / src / tools / miri / tests / panic / overflowing-rsh-2.rs
1 #![allow(arithmetic_overflow)]
2
3 fn main() {
4     // Make sure we catch overflows that would be hidden by first casting the RHS to u32
5     let _n = 1i64 >> (u32::MAX as i64 + 1);
6 }