aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorgrischka <grischka>2016-05-06 08:32:54 +0200
committergrischka <grischka>2016-05-06 08:32:54 +0200
commita94e8d439acbaa1634e59420749ffdb7ee15e353 (patch)
tree5a8fabc2a954dfba7a8e9da6dca2bad84e7d7b68 /tests
parentd48662d49650099e5ab9e1fe218311a18c2ff73a (diff)
downloadtinycc-a94e8d439acbaa1634e59420749ffdb7ee15e353.tar.gz
tinycc-a94e8d439acbaa1634e59420749ffdb7ee15e353.tar.bz2
tccgen: scopes levels for local symbols (update 2)
allow typedef int xxx; typedef int xxx; in the same scope as long as it is the same type
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile1
-rw-r--r--tests/pp/Makefile12
2 files changed, 7 insertions, 6 deletions
diff --git a/tests/Makefile b/tests/Makefile
index e9f173b..cf817ad 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -250,6 +250,7 @@ cache: tcc_g
# clean
clean:
$(MAKE) -C tests2 $@
+ $(MAKE) -C pp $@
rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.out?b *.cc \
*-cc *-tcc *.exe \
hello libtcc_test vla_test tcctest[1234] ex? tcc_g
diff --git a/tests/pp/Makefile b/tests/pp/Makefile
index 7f42a3e..ad97f9b 100644
--- a/tests/pp/Makefile
+++ b/tests/pp/Makefile
@@ -8,16 +8,18 @@ TESTS += $(patsubst %.S,%.test,$(wildcard *.S))
all test : $(sort $(TESTS))
+DIFF_OPTS = -Nu -b -B -I "^\#"
+
%.test: %.c %.expect
@echo PPTest $* ...
-@$(TCC) -E -P $< >$*.output 2>&1 ; \
- diff -Nu -b -B -I "^#" $(EXTRA_DIFF_OPTS) $*.expect $*.output \
+ diff $(DIFF_OPTS) $*.expect $*.output \
&& rm -f $*.output
%.test: %.S %.expect
@echo PPTest $* ...
-@$(TCC) -E -P $< >$*.output 2>&1 ; \
- diff -Nu -b -B -I "^#" $(EXTRA_DIFF_OPTS) $*.expect $*.output \
+ diff $(DIFF_OPTS) $*.expect $*.output \
&& rm -f $*.output
# automatically generate .expect files with gcc:
@@ -33,10 +35,8 @@ all test : $(sort $(TESTS))
clean:
rm -vf *.output
-# 02.test : EXTRA_DIFF_OPTS = -w
-# 03.test : EXTRA_DIFF_OPTS = -w
-# 04.test : EXTRA_DIFF_OPTS = -w
-# 10.test : EXTRA_DIFF_OPTS = -w
+02.test : DIFF_OPTS += -w
+15.test : DIFF_OPTS += -w
# diff options:
# -b ighore space changes