From a1c139063b9157c804fd76eedb6a8060726fe0d5 Mon Sep 17 00:00:00 2001 From: seyko Date: Sun, 1 May 2016 05:43:57 +0300 Subject: output space after TOK_PPNUM which followed by '+' or '-' * correct -E output for the case ++ + ++ concatenation do this only for expanded from macro string and only when tcc_state->output_type == TCC_OUTPUT_PREPROCESS --- tests/pp/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/pp/Makefile') diff --git a/tests/pp/Makefile b/tests/pp/Makefile index 5694ebb..7f42a3e 100644 --- a/tests/pp/Makefile +++ b/tests/pp/Makefile @@ -6,17 +6,17 @@ TCC = ../../tcc TESTS = $(patsubst %.c,%.test,$(wildcard *.c)) TESTS += $(patsubst %.S,%.test,$(wildcard *.S)) -all test : $(TESTS) +all test : $(sort $(TESTS)) %.test: %.c %.expect @echo PPTest $* ... - @$(TCC) -E -P $< >$*.output 2>&1 ; \ + -@$(TCC) -E -P $< >$*.output 2>&1 ; \ diff -Nu -b -B -I "^#" $(EXTRA_DIFF_OPTS) $*.expect $*.output \ && rm -f $*.output %.test: %.S %.expect @echo PPTest $* ... - @$(TCC) -E -P $< >$*.output 2>&1 ; \ + -@$(TCC) -E -P $< >$*.output 2>&1 ; \ diff -Nu -b -B -I "^#" $(EXTRA_DIFF_OPTS) $*.expect $*.output \ && rm -f $*.output -- cgit v1.3.1