2017-07-03 22:27:09 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
|
|
|
|
use std::intrinsics::*;
|
|
|
|
|
2022-03-17 08:49:10 -05:00
|
|
|
// error-pattern: overflowing shift by 64 in `unchecked_shr`
|
2017-07-03 22:27:09 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe {
|
|
|
|
let _n = unchecked_shr(1i64, 64);
|
|
|
|
}
|
|
|
|
}
|