summaryrefslogtreecommitdiffstats
path: root/src/test/ui/numbers-arithmetic/int-abs-overflow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/numbers-arithmetic/int-abs-overflow.rs')
-rw-r--r--src/test/ui/numbers-arithmetic/int-abs-overflow.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/numbers-arithmetic/int-abs-overflow.rs b/src/test/ui/numbers-arithmetic/int-abs-overflow.rs
deleted file mode 100644
index d63ba8cb0..000000000
--- a/src/test/ui/numbers-arithmetic/int-abs-overflow.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// run-pass
-// compile-flags: -C overflow-checks=on
-// ignore-emscripten no threads support
-// needs-unwind
-
-use std::thread;
-
-fn main() {
- 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());
-}