changeset 46:eaa154ded584

Test recursive macros.
author David A. Holland
date Sat, 30 Mar 2013 22:35:06 -0400
parents f263adbf7445
children 2e25e55dba6b
files tests/Makefile tests/t11.c tests/t11.good tests/t12.c tests/t12.good
diffstat 5 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/Makefile	Sat Mar 30 22:33:53 2013 -0400
+++ b/tests/Makefile	Sat Mar 30 22:35:06 2013 -0400
@@ -1,6 +1,6 @@
 TRADCPP=../obj/tradcpp  # XXX
 
-TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10
+TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12
 
 all: run-tests .WAIT show-diffs
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t11.c	Sat Mar 30 22:35:06 2013 -0400
@@ -0,0 +1,2 @@
+#define BOO BOO
+BOO
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t11.good	Sat Mar 30 22:35:06 2013 -0400
@@ -0,0 +1,1 @@
+BOO
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t12.c	Sat Mar 30 22:35:06 2013 -0400
@@ -0,0 +1,2 @@
+#define BOO(yah) BOO(yah)
+BOO(yah)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t12.good	Sat Mar 30 22:35:06 2013 -0400
@@ -0,0 +1,1 @@
+BOO(yah)