shithub: scc

Download patch

ref: 401f8a32f2bbbb094bbaedca2738040eeed4c61d
parent: b163cce9603d1d385698e8b09d66797a9086ba28
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Mar 6 11:00:45 EST 2017

[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.

--- /dev/null
+++ b/tests/execute/0126-macropar.c
@@ -1,0 +1,6 @@
+#define F(a, b) a
+int
+main()
+{
+	return F(, 1) 0;
+}
--- 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]