1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // ignore-emscripten no threads support
12 #![feature(rustc_attrs)]
21 ($($t:ident)*) => ($(impl Int for $t {
26 doit! { i8 i16 i32 i64 isize }
30 $(assert!(thread::spawn({
32 }).join().is_err());)*
38 isize::min_value() / -isize::one(),
39 i8::min_value() / -i8::one(),
40 i16::min_value() / -i16::one(),
41 i32::min_value() / -i32::one(),
42 i64::min_value() / -i64::one(),
43 1isize / isize::zero(),
48 isize::min_value() % -isize::one(),
49 i8::min_value() % -i8::one(),
50 i16::min_value() % -i16::one(),
51 i32::min_value() % -i32::one(),
52 i64::min_value() % -i64::one(),
53 1isize % isize::zero(),