rust/tests/fail/intrinsics/overflowing-unchecked-rsh.rs
2022-06-01 10:53:38 -04:00

12 lines
192 B
Rust

#![feature(core_intrinsics)]
use std::intrinsics::*;
// error-pattern: overflowing shift by 64 in `unchecked_shr`
fn main() {
unsafe {
let _n = unchecked_shr(1i64, 64);
}
}