mesa/src/glsl/glcpp/tests/082-invalid-paste.c
Carl Worth c86eb0cd65 glcpp: Extend the invalid-paste test
The current code lets a few invalid pastes through, such as an string pasted
onto the end of an integer. Extend the invalid-paste test to catch some of
these.

Reviewed-by: Matt Turner <mattst88@gmail.com>
2012-11-29 13:03:01 -08:00

7 lines
98 B
C

#define PASTE(x,y) x ## y
PASTE(<,>)
PASTE(0,abc)
PASTE(1,=)
PASTE(2,@)
PASTE(3,-4)
PASTE(4,+5.2)