aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 15:55:40 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 15:55:40 +0330
commit6b7c7048b8bb92a0ab2f7ae8749f80349c607ed1 (patch)
treec082aa97127faada26fc39fc652fc922e6f84f05 /tests/langerrors
parentcasts: a cast clears the byte-string flag unless the type is bstr, so (int*)s... (diff)
fndef: allow 24 parameters; the limit check ran after the 24th was counted
Diffstat (limited to 'tests/langerrors')
-rw-r--r--tests/langerrors/params_25.zc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/langerrors/params_25.zc b/tests/langerrors/params_25.zc
new file mode 100644
index 0000000..738cbcc
--- /dev/null
+++ b/tests/langerrors/params_25.zc
@@ -0,0 +1,3 @@
+// expect: too many parameters
+fn f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25) { return 0; }
+fn main() { return 0; }