aboutsummaryrefslogtreecommitdiff
path: root/tests/tcctest.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-03-24 15:58:32 +0100
committerMichael Matz <matz@suse.de>2016-03-24 15:58:32 +0100
commit8fc5a6a2a49f05c358e293c79c0bf18e8eb4830e (patch)
tree1022e80c1e6cfebd23214f032a45061257f17fb9 /tests/tcctest.c
parentf85db99ff0b48b5837fa985dcf9c58190b35f96a (diff)
downloadtinycc-8fc5a6a2a49f05c358e293c79c0bf18e8eb4830e.tar.gz
tinycc-8fc5a6a2a49f05c358e293c79c0bf18e8eb4830e.tar.bz2
Fix tokenization of TOK_DOTS
We really need to use PEEKC during tokenization so as to skip line continuations automatically.
Diffstat (limited to 'tests/tcctest.c')
-rw-r--r--tests/tcctest.c5
1 files changed, 5 insertions, 0 deletions
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