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

http://github.com/jruderman/rust · Rust · 7 lines · 5 code · 2 blank · 0 comment · 0 complexity · be31701da63879a7aa097a0f46d063c6 MD5 · raw file

  1. fn main() {
  2. let i32_c: int = 0x10101010;
  3. assert (i32_c + i32_c * 2 / 3 * 2 + (i32_c - 7 % 3) ==
  4. i32_c + i32_c * 2 / 3 * 2 + (i32_c - 7 % 3));
  5. }