From 8fc5a6a2a49f05c358e293c79c0bf18e8eb4830e Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Thu, 24 Mar 2016 15:58:32 +0100 Subject: Fix tokenization of TOK_DOTS We really need to use PEEKC during tokenization so as to skip line continuations automatically. --- tests/tcctest.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/tcctest.c') diff --git a/tests/tcctest.c b/tests/tcctest.c index 41cca11..381a992 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -114,6 +114,11 @@ void num(int n); void forward_ref(void); int isid(int c); +/* Line joining happens before tokenization, so the following + must be parsed as ellipsis. */ +void funny_line_continuation (int, ..\ +. ); + #define A 2 #define N 1234 + A #define pf printf -- cgit v1.3.1