2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2013-09-25 00:43:37 -07:00
|
|
|
pub fn main() {
|
2015-03-25 17:06:52 -07:00
|
|
|
let i: usize = 0;
|
2015-03-03 10:42:26 +02:00
|
|
|
assert!(i <= 0xFFFF_FFFF);
|
2013-05-18 01:47:51 +10:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
let i: isize = 0;
|
2015-03-03 10:42:26 +02:00
|
|
|
assert!(i >= -0x8000_0000);
|
|
|
|
assert!(i <= 0x7FFF_FFFF);
|
2013-05-18 01:47:51 +10:00
|
|
|
}
|