changeset 55:1b189ab47533

Test case for #include macro, currently broken.
author Joerg Sonnenberger <joerg@bec.de>
date Sun, 31 Mar 2013 06:26:08 +0200
parents cf2830e5b81f
children fabdb7db1472
files tests/Makefile tests/subdir/test.h tests/t14.c tests/t14.good
diffstat 4 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/Makefile	Sun Mar 31 06:16:08 2013 +0200
+++ b/tests/Makefile	Sun Mar 31 06:26:08 2013 +0200
@@ -11,7 +11,7 @@
 TRADCPP_OBJDIR!=	${MAKE} -C .. -V .OBJDIR
 TRADCPP=	${TRADCPP_OBJDIR}/tradcpp
 
-TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13
+TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13 t14
 
 .for T in $(TESTS)
 run-tests: $(T).diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/subdir/test.h	Sun Mar 31 06:26:08 2013 +0200
@@ -0,0 +1,1 @@
+hello
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t14.c	Sun Mar 31 06:26:08 2013 +0200
@@ -0,0 +1,2 @@
+#define file "subdir/test.h"
+#include file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/t14.good	Sun Mar 31 06:26:08 2013 +0200
@@ -0,0 +1,1 @@
+hello