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
This commit is contained in:
seyko
2016-05-01 05:43:57 +03:00
parent 256078933c
commit a1c139063b
9 changed files with 114 additions and 9 deletions

6
tests/pp/15.expect Normal file
View File

@ -0,0 +1,6 @@
Z(1)
Z(Z(1))
Z(Z(Z(Z(Z(1)))))
return A + B;
return A+1 + B+1;
return A1+3 +2 +1 + B1+1 +3 +2;