ref: 76abfd698816b23920c422a0aa8c4947b156b50c
parent: 6a1b574d52f8c9dd3795acfdcf0f46152e942530
author: Ori Bernstein <[email protected]>
date: Tue Jun 19 08:17:43 EDT 2012
Add test for calling functions with non-word args.
--- /dev/null
+++ b/test/callbig.myr
@@ -1,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)
+}
--- a/test/tests
+++ b/test/tests
@@ -24,6 +24,7 @@
B array E 7
B arraylen E 12
B call E 42
+B callbig E 42
B loop E 45
B fib E 21
B slice E 7