1 // Copyright 2012 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.
12 fn id_i8(n: i8) -> i8 { n }
13 fn id_i16(n: i16) -> i16 { n }
14 fn id_i32(n: i32) -> i32 { n }
15 fn id_i64(n: i64) -> i64 { n }
17 fn id_uint(n: uint) -> uint { n }
18 fn id_u8(n: u8) -> u8 { n }
19 fn id_u16(n: u16) -> u16 { n }
20 fn id_u32(n: u32) -> u32 { n }
21 fn id_u64(n: u64) -> u64 { n }
28 let _i: i16 = -32_768;
33 let _i: i32 = -2_147_483_648;
34 let j = -2_147_483_648;
36 id_i32(-2_147_483_648);
38 let _i: i64 = -9_223_372_036_854_775_808;
39 let j = -9_223_372_036_854_775_808;
41 id_i64(-9_223_372_036_854_775_808);
58 let _i: u32 = 4_294_967_295;
59 let j = 4_294_967_295;
61 id_u32(4_294_967_295);
63 let _i: u64 = 18_446_744_073_709_551_615;
64 let j = 18_446_744_073_709_551_615;
66 id_u64(18_446_744_073_709_551_615);