Sign in
android
/
toolchain
/
rustc
/
983137f038c4d4b95a0cd86b7c42d0313b50de67
/
.
/
src
/
tools
/
miri
/
tests
/
run-pass
/
panic
/
overflowing-rsh-2.rs
blob: 19d16e7bc84a2e3117977e7ec0b4bd03f894fa6a [
file
] [
log
] [
blame
]
#![
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
);
}