2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2013-11-06 17:30:12 -06:00
|
|
|
pub fn main() {
|
2015-02-18 04:42:01 -06:00
|
|
|
let a = 0xBEEF_isize;
|
|
|
|
let b = 0o755_isize;
|
|
|
|
let c = 0b10101_isize;
|
|
|
|
let d = -0xBEEF_isize;
|
|
|
|
let e = -0o755_isize;
|
|
|
|
let f = -0b10101_isize;
|
2013-11-06 17:30:12 -06:00
|
|
|
|
|
|
|
assert_eq!(a, 48879);
|
|
|
|
assert_eq!(b, 493);
|
|
|
|
assert_eq!(c, 21);
|
|
|
|
assert_eq!(d, -48879);
|
|
|
|
assert_eq!(e, -493);
|
|
|
|
assert_eq!(f, -21);
|
|
|
|
|
|
|
|
|
|
|
|
}
|