2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2021-11-24 12:19:23 -06:00
|
|
|
// compile-flags: -C overflow-checks=on
|
2016-02-11 05:34:41 -06:00
|
|
|
// ignore-emscripten no threads support
|
2021-12-03 09:32:51 -06:00
|
|
|
// needs-unwind
|
2015-05-15 11:18:14 -05:00
|
|
|
|
|
|
|
use std::thread;
|
|
|
|
|
|
|
|
fn main() {
|
2020-06-02 02:59:11 -05: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 11:18:14 -05:00
|
|
|
}
|