commit f79dac5748b0ed8af46be26456a48e2d5ac7ceb8
parent ba6fc8e2c447455483d2c41241c4d03d85bbb5fb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 6 Mar 2017 16:00:45 +0100
[tests] Add test for empty parameters in macros
6.10.3 in Rationale for International Standard Programming Languages
C rev. 5.10 says:
A new feature of C99: Function-like macro invocations may also now have
empty arguments, that is, an argument may consist of no preprocessing
tokens.
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/tests/execute/0126-macropar.c b/tests/execute/0126-macropar.c
@@ -0,0 +1,6 @@
+#define F(a, b) a
+int
+main()
+{
+ return F(, 1) 0;
+}
diff --git a/tests/execute/scc-tests.lst b/tests/execute/scc-tests.lst
@@ -116,3 +116,4 @@
0123-doubleconst.c [TODO]
0124-enumstruct.c [TODO]
0125-fundcl.c
+0126-macropar.c [TODO]