2017-07-03 22:27:09 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
|
|
|
|
use std::intrinsics::*;
|
|
|
|
|
2020-03-09 05:42:59 -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);
|
|
|
|
}
|
|
|
|
}
|