summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorandrewc <andrew_chambers@trimble.com>2016-01-12 14:26:06 +1300
committerandrewc <andrew_chambers@trimble.com>2016-01-12 14:26:52 +1300
commit3fe8f058c4ae3f84ef931b61ff667ef93dc741ab (patch)
treeba156baa0828e9b268840b950908b40b37c77d57 /test
parent4c1c6f77962993b62a082bfd2d91bde671cdc329 (diff)
downloadmc-3fe8f058c4ae3f84ef931b61ff667ef93dc741ab.tar.gz
Fix #36 - Emit Oret arg when return type is void
Diffstat (limited to 'test')
-rwxr-xr-xtest/runtest.sh1
-rw-r--r--test/tests1
-rw-r--r--test/voideffect.myr13
3 files changed, 14 insertions, 1 deletions
diff --git a/test/runtest.sh b/test/runtest.sh
index da8ca39..538027b 100755
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -42,7 +42,6 @@ function expectprint {
fi
}
-
function expectcompare {
if [ x"" != x"$TMPDIR" ]; then
t=$TMPDIR/myrtest-$1-$RANDOM
diff --git a/test/tests b/test/tests
index 8dc684f..3a69408 100644
--- a/test/tests
+++ b/test/tests
@@ -148,3 +148,4 @@ F generic-in-const
F aritylow
F arityhigh
F badop
+B voideffect P pass
diff --git a/test/voideffect.myr b/test/voideffect.myr
new file mode 100644
index 0000000..c570b02
--- /dev/null
+++ b/test/voideffect.myr
@@ -0,0 +1,13 @@
+use std
+
+const bar = {
+ std.put("pass")
+}
+
+const foo = {
+ -> bar()
+}
+
+const main = {
+ foo()
+}