]> git.lizzy.rs Git - rust.git/blob - tests/compile-fail/overflowing-unchecked-rsh.rs
730d01597f4d09da5051987169346398173e50fe
[rust.git] / tests / compile-fail / overflowing-unchecked-rsh.rs
1 #![feature(core_intrinsics)]
2
3 use std::intrinsics::*;
4
5 //error-pattern: overflowing shift by 64 in `unchecked_shr`
6
7 fn main() {
8     unsafe {
9         let _n = unchecked_shr(1i64, 64);
10     }
11 }