rust/src/test/run-pass/arith-2.rs

5 lines
175 B
Rust
Raw Normal View History

2010-08-09 08:53:37 -05:00
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)));
}