2019-11-29 13:18:54 +01:00
|
|
|
// ignore-windows: Unwind panicking does not currently work on Windows
|
2017-07-03 20:46:21 -07:00
|
|
|
#![allow(exceeding_bitshifts, const_err)]
|
2017-03-14 14:24:16 +01:00
|
|
|
|
|
|
|
fn main() {
|
2017-07-03 20:46:21 -07:00
|
|
|
// Make sure we catch overflows that would be hidden by first casting the RHS to u32
|
2019-11-29 13:18:54 +01:00
|
|
|
let _n = 1i64 >> (u32::max_value() as i64 + 1);
|
2017-03-14 14:24:16 +01:00
|
|
|
}
|