diff tests/t27.c @ 119:4f493fb35821

Test empty arguments.
author David A. Holland
date Tue, 11 Jun 2013 14:12:54 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t27.c	Tue Jun 11 14:12:54 2013 -0400
@@ -0,0 +1,29 @@
+1.
+#define A(a) a
+A();
+
+2.
+#define B(a, b) (a,b)
+B(a, );
+B(, b);
+B( , );
+B(a,);
+B(,b);
+B(,);
+
+3.
+#define C(a, b, c) (a,b,c)
+C(a, b, );
+C(a, , c);
+C(, , c);
+C(a, , );
+C(, b, );
+C(, , c);
+C(, , )
+C(a,b,);
+C(a,,c);
+C(,,c);
+C(a,,);
+C(,b,);
+C(,,c);
+C(,,)