changeset 35:b30f69cab9bc

Add another test. Joerg says that #define foo()x is legal in traditional cpp, so let's make it a test case.
author David A. Holland
date Sat, 30 Mar 2013 20:39:03 -0400
parents c24cbfa44f81
children a489cc223483
files tests/Makefile tests/t10.c tests/t10.good
diffstat 3 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- /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()
--- /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