changeset 52:ebdc6a4cb0f8

Test case for handling of missing arguments.
author Joerg Sonnenberger <joerg@bec.de>
date Sun, 31 Mar 2013 06:07:44 +0200
parents bec1eb5ac326
children 937d310debaa
files tests/t13.c tests/t13.good
diffstat 2 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t13.c	Sun Mar 31 06:07:44 2013 +0200
@@ -0,0 +1,11 @@
+#define a() x
+a()
+a ()
+#define b(p) p
+x/**/b(1)/**/x
+x/**/b (1)/**/x
+x/**/b()/**/x
+#define c(p,q) p/**/q
+x/**/c(1,2)/**/x
+x/**/c(1)/**/x
+x/**/c()/**/x
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t13.good	Sun Mar 31 06:07:44 2013 +0200
@@ -0,0 +1,10 @@
+x
+x
+x1x
+x1x
+xx
+x12x
+t13.c:10:1: Wrong number of arguments for macro c; found 1, expected 2
+x1x
+t13.c:11:1: Wrong number of arguments for macro c; found 0, expected 2
+xx