mesa/tests/059-token-pasting-integer.c
Carl Worth 050e3ded1e Implement token pasting of integers.
To do this correctly, we change the lexer to lex integers as string values,
(new token type of INTEGER_STRING), and only convert to integer values when
evaluating an expression value.

Add a new test case for this, (which does pass now).
2010-05-27 14:38:20 -07:00

4 lines
70 B
C

#define paste(x,y) x ## y
paste(1,2)
paste(1,000)
paste(identifier,2)