summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-15 01:14:11 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-15 01:14:11 -0800
commita46d3858ca1b5dec53cb1f18af34d6d215d0a542 (patch)
treeb8d05f818c93aab282a6022aef78f871848de3d4 /test
parenta25778a74151e4bbf3abdd0aab1c37af24e19d05 (diff)
downloadmc-a46d3858ca1b5dec53cb1f18af34d6d215d0a542.tar.gz
Add missing file.
Diffstat (limited to 'test')
-rw-r--r--test/voidassign.myr12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/voidassign.myr b/test/voidassign.myr
new file mode 100644
index 0000000..bb2ee2d
--- /dev/null
+++ b/test/voidassign.myr
@@ -0,0 +1,12 @@
+use std
+
+const main = {
+ var x : void
+
+ x = f()
+}
+
+const f = {
+ std.put("ok\n")
+}
+