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