changeset 194:879fd8f0dd53

add test that would have caught the breakage in 0.5
author David A. Holland
date Fri, 12 Jun 2015 22:02:50 -0400
parents 079304130850
children ab06d46bf5cc
files tests/Makefile tests/t40.c tests/t40.good
diffstat 3 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/Makefile	Fri Jun 12 22:00:45 2015 -0400
+++ b/tests/Makefile	Fri Jun 12 22:02:50 2015 -0400
@@ -4,7 +4,7 @@
 TESTS=\
 	t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13 t14 t15 t16 \
 	t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29 t30 t31 t32 \
-	t33 t34 t35 t36 t37 t38 t39
+	t33 t34 t35 t36 t37 t38 t39 t40
 
 all: run-tests .WAIT show-diffs
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t40.c	Fri Jun 12 22:02:50 2015 -0400
@@ -0,0 +1,6 @@
+#define foo bar
+
+#define bar(x) do x do
+
+foo(de)
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t40.good	Fri Jun 12 22:02:50 2015 -0400
@@ -0,0 +1,1 @@
+do de do