# HG changeset patch # User David A. Holland # Date 1364690343 14400 # Node ID b30f69cab9bc2c8b4f2c78e31c85503d95e85c8f # Parent c24cbfa44f81d4337a1740f97d8c79ad79be6148 Add another test. Joerg says that #define foo()x is legal in traditional cpp, so let's make it a test case. diff -r c24cbfa44f81 -r b30f69cab9bc tests/Makefile --- a/tests/Makefile Sat Mar 30 20:38:17 2013 -0400 +++ b/tests/Makefile Sat Mar 30 20:39:03 2013 -0400 @@ -1,6 +1,6 @@ TRADCPP=../obj/tradcpp # XXX -TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 +TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 all: run-tests .WAIT show-diffs diff -r c24cbfa44f81 -r b30f69cab9bc tests/t10.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t10.c Sat Mar 30 20:39:03 2013 -0400 @@ -0,0 +1,3 @@ +#define mac(r)o +mac(3) +mac() diff -r c24cbfa44f81 -r b30f69cab9bc tests/t10.good --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t10.good Sat Mar 30 20:39:03 2013 -0400 @@ -0,0 +1,4 @@ +t10.c:1:15: Trash after macro parameter list +mac(3) +mac() +FAILED