projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb48fcd
)
Add test for token-pasting of integers.
author
Carl Worth
<cworth@cworth.org>
Thu, 27 May 2010 21:45:20 +0000
(14:45 -0700)
committer
Carl 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]
patch
|
blob
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
+++ 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)