aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/call_wrong_arg_count.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conformance/3-expressions/call_wrong_arg_count.zc')
-rw-r--r--tests/conformance/3-expressions/call_wrong_arg_count.zc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/conformance/3-expressions/call_wrong_arg_count.zc b/tests/conformance/3-expressions/call_wrong_arg_count.zc
new file mode 100644
index 0000000..8c87e43
--- /dev/null
+++ b/tests/conformance/3-expressions/call_wrong_arg_count.zc
@@ -0,0 +1,4 @@
+// expect error: f: wrong number of arguments
+include rt;
+int f(int a, int b) { return a + b; }
+fn main() { rt.put_n(f(1, 2, 3)); return 0; }