summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-15 13:18:17 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-15 13:18:17 -0400
commit87c65208dece48a6d6005a221437bef879c65850 (patch)
tree5b2d076ed38ea1cab808a6ffa515804a1778ec10 /test
parent3a076cf836169c7483321ce396bf61ea6fd08db6 (diff)
downloadmc-87c65208dece48a6d6005a221437bef879c65850.tar.gz
Allow shiftiing by constants.
Diffstat (limited to 'test')
-rw-r--r--test/bsr.myr3
-rw-r--r--test/div.myr7
-rw-r--r--test/mod.myr4
3 files changed, 11 insertions, 3 deletions
diff --git a/test/bsr.myr b/test/bsr.myr
index bac2705..d2d7c5f 100644
--- a/test/bsr.myr
+++ b/test/bsr.myr
@@ -1,3 +1,4 @@
const main = {
- -> 42 >> 3
+ var a = 42
+ -> a >> 3
}
diff --git a/test/div.myr b/test/div.myr
index 4e5749f..fbb4947 100644
--- a/test/div.myr
+++ b/test/div.myr
@@ -1,3 +1,8 @@
const main = {
- -> 84 / 2
+ var a
+ var b
+
+ a = 84
+ b = 2
+ -> a / b
}
diff --git a/test/mod.myr b/test/mod.myr
index ed4d820..842ab70 100644
--- a/test/mod.myr
+++ b/test/mod.myr
@@ -1,3 +1,5 @@
const main = {
- -> 42 % 9
+ var a = 42
+ var b = 9
+ -> a % b
}