2019-06-16 04:10:14 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
fn main() {
|
|
|
|
// MIN overflow
|
2022-06-21 13:38:02 -05:00
|
|
|
unsafe {
|
2022-07-11 06:44:55 -05:00
|
|
|
std::intrinsics::unchecked_add(-30000i16, -8000); //~ ERROR: overflow executing `unchecked_add`
|
2022-06-21 13:40:02 -05:00
|
|
|
}
|
2019-06-16 04:10:14 -05:00
|
|
|
}
|