2018-08-30 12:18:55 +00:00
|
|
|
// run-pass
|
2021-11-24 18:19:23 +00:00
|
|
|
// compile-flags: -C overflow-checks=on
|
2016-02-11 11:34:41 +00:00
|
|
|
// ignore-emscripten no threads support
|
2021-12-03 15:32:51 +00:00
|
|
|
// needs-unwind
|
2015-05-15 16:18:14 +00:00
|
|
|
|
|
|
|
use std::thread;
|
|
|
|
|
|
|
|
fn main() {
|
2020-06-02 07:59:11 +00:00
|
|
|
assert!(thread::spawn(|| i8::MIN.abs()).join().is_err());
|
|
|
|
assert!(thread::spawn(|| i16::MIN.abs()).join().is_err());
|
|
|
|
assert!(thread::spawn(|| i32::MIN.abs()).join().is_err());
|
|
|
|
assert!(thread::spawn(|| i64::MIN.abs()).join().is_err());
|
|
|
|
assert!(thread::spawn(|| isize::MIN.abs()).join().is_err());
|
2015-05-15 16:18:14 +00:00
|
|
|
}
|