summaryrefslogtreecommitdiff
path: root/test/callbig.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-19 12:17:43 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-19 12:17:43 -0400
commit76abfd698816b23920c422a0aa8c4947b156b50c (patch)
tree1135e002a73cad9550ac986f296aa8b67674d748 /test/callbig.myr
parent6a1b574d52f8c9dd3795acfdcf0f46152e942530 (diff)
downloadmc-76abfd698816b23920c422a0aa8c4947b156b50c.tar.gz
Add test for calling functions with non-word args.
Diffstat (limited to 'test/callbig.myr')
-rw-r--r--test/callbig.myr15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/callbig.myr b/test/callbig.myr
new file mode 100644
index 0000000..a9a717a
--- /dev/null
+++ b/test/callbig.myr
@@ -0,0 +1,15 @@
+type pair = struct
+ a : int
+ b : int
+;;
+
+const f = {s
+ -> s.a + s.b
+}
+
+const main = {
+ var s : pair
+ s.a = 12
+ s.b = 30
+ -> f(s)
+}