summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-6130.rs
blob: a33ea68694779621b65943c505af9fcafd1a4749 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass

pub fn main() {
    let i: usize = 0;
    assert!(i <= 0xFFFF_FFFF);

    let i: isize = 0;
    assert!(i >= -0x8000_0000);
    assert!(i <= 0x7FFF_FFFF);
}