commit d5e3482c4be7af96c59d226f31be0f6e12968a31
parent bcab2ba2573784415a25688bc1b4c116f4b8cbc5
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 2 Mar 2023 20:56:26 +0100
tests/cc: Add execute/0224-macro.c
Diffstat:
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/tests/cc/execute/0224-macro.c b/tests/cc/execute/0224-macro.c
@@ -0,0 +1,18 @@
+#define _PROTOTYPE(x, y) x y
+
+_PROTOTYPE(int fun, (char *s, int n, const char *format, char *arg) );
+
+_PROTOTYPE(int fun, (char *s, int n, const char *format,
+ char *arg) );
+
+int
+fun(char *s, int n, const char *format, char *arg)
+{
+ return 0;
+}
+
+int
+main()
+{
+ return fun(0, 0, 0, 0);
+}
diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst
@@ -214,3 +214,4 @@
0221-ifdef.c
0222-ifdef.c
0223-macro.c
+0224-macro.c