From: Carl Worth Date: Thu, 27 May 2010 21:45:20 +0000 (-0700) Subject: Add test for token-pasting of integers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=886e05a35a319cdace9afed93d0cc8df2c7f33e0;p=mesa.git 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). --- 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)