aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/arith-2.rs
blob: 70892682b777db558eaded687d937a3fd4ce6f9f (plain) (blame)
1
2
3
4
5
fn main() -> () {
    let int i32_c = 0x10101010;
    assert (i32_c + i32_c * 2 / 3 * 2 + (i32_c - 7 % 3) == 
           i32_c + (((i32_c * 2) / 3) * 2) + (i32_c - (7 % 3)));
}