2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2016-08-03 21:01:06 -05:00
|
|
|
// error-pattern:thread 'main' panicked at 'attempt to negate with overflow'
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2015-04-17 08:32:30 -05:00
|
|
|
// compile-flags: -C debug-assertions
|
|
|
|
|
2020-02-18 15:49:47 -06:00
|
|
|
#![allow(arithmetic_overflow)]
|
2018-05-11 07:33:37 -05:00
|
|
|
|
2015-04-17 08:32:30 -05:00
|
|
|
fn main() {
|
2020-10-24 18:21:40 -05:00
|
|
|
let _x = -i8::MIN;
|
2015-04-17 08:32:30 -05:00
|
|
|
}
|