summaryrefslogtreecommitdiff
path: root/test/incret.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-12-18 16:42:42 -0500
committerOri Bernstein <ori@eigenstate.org>2013-12-18 16:42:42 -0500
commit993d1af900057e362e08ea738e1f6f6b409c749e (patch)
tree479845a92489014bd2729fb7e166c4873f86da0c /test/incret.myr
parentf97e207c661b21747119784d7dea76fb91f6d13f (diff)
downloadmc-993d1af900057e362e08ea738e1f6f6b409c749e.tar.gz
Add missing 'incret.myr' test.
Diffstat (limited to 'test/incret.myr')
-rw-r--r--test/incret.myr11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/incret.myr b/test/incret.myr
new file mode 100644
index 0000000..8005f2f
--- /dev/null
+++ b/test/incret.myr
@@ -0,0 +1,11 @@
+use std
+
+var i = 0
+const f = {
+ -> i++
+}
+
+const main = {
+ f()
+ std.exit(i)
+}