commit 85581c37b33ab4994b0c0d55ca8ff462c31fa993
parent 12063a5dfbb71d8db9f048fc2e900167e8c81e34
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 15 Nov 2021 19:16:56 +0100
tests/cc: Add error test 0026-numargs.c
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/tests/cc/error/0026-numargs.c b/tests/cc/error/0026-numargs.c
@@ -0,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;
+}