Add test for token-pasting of integers.
authorCarl Worth <cworth@cworth.org>
Thu, 27 May 2010 21:45:20 +0000 (14:45 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 27 May 2010 21:45:20 +0000 (14:45 -0700)
This test was tricky to make pass in the take-2 branch. It ends up
passing already here with no additional effort, (since we are lexing
integers as string-valued token except when in the ST_IF state in the
lexer anyway).

tests/059-token-pasting-integer.c [new file with mode: 0644]

diff --git a/tests/059-token-pasting-integer.c b/tests/059-token-pasting-integer.c
new file mode 100644 (file)
index 0000000..37b895a
--- /dev/null
@@ -0,0 +1,4 @@
+#define paste(x,y) x ## y
+paste(1,2)
+paste(1,000)
+paste(identifier,2)