aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/arith-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/arith-2.rs')
-rw-r--r--src/test/run-pass/arith-2.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/run-pass/arith-2.rs b/src/test/run-pass/arith-2.rs
new file mode 100644
index 00000000..33a740c8
--- /dev/null
+++ b/src/test/run-pass/arith-2.rs
@@ -0,0 +1,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)));
+} \ No newline at end of file