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