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/02.expect | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/pp/02.expect') diff --git a/tests/pp/02.expect b/tests/pp/02.expect index 16f42ae..625c80b 100644 --- a/tests/pp/02.expect +++ b/tests/pp/02.expect @@ -1,5 +1,6 @@ f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1); -f(2 * (2+(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1); +f(2 * (2 +(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1); + char c[2][6] = { "hello", "" }; f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1); -f(2 * (2+(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1); +f(2 * (2 +(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1); -- cgit v1.3.1