shithub: scc

Download patch

ref: 190def5cfee4412054ed0c9ffadb0ba7f7ac721e
parent: 07080bf7b7a6efd833bbb5da74c9ace959ef5ed9
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Nov 15 14:16:56 EST 2021

tests/cc: Add error test 0026-numargs.c

--- /dev/null
+++ b/tests/cc/error/0026-numargs.c
@@ -1,0 +1,16 @@
+#include <stdio.h>
+
+void
+fn(int a, int b)
+{
+}
+
+int
+main(void)
+{
+	fn("a", 1);
+	fn(1, "a");
+	fn(1, 2, 3);
+
+	return 0;
+}