summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-05-27 14:45:20 -0700
committerCarl Worth <[email protected]>2010-05-27 14:45:20 -0700
commit886e05a35a319cdace9afed93d0cc8df2c7f33e0 (patch)
tree4fff2ae151e7b96a699634b296e2b68640c88059
parentfb48fcdf9b5a5b002469ed247809fb0294d6c7a8 (diff)
Add test for token-pasting of integers.
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).
-rw-r--r--tests/059-token-pasting-integer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/059-token-pasting-integer.c b/tests/059-token-pasting-integer.c
new file mode 100644
index 00000000000..37b895a4237
--- /dev/null
+++ b/tests/059-token-pasting-integer.c
@@ -0,0 +1,4 @@
+#define paste(x,y) x ## y
+paste(1,2)
+paste(1,000)
+paste(identifier,2)