From: Carl Worth Date: Thu, 29 Sep 2011 23:50:40 +0000 (-0700) Subject: glcpp: Add a test for a macro that implements token pasting twice. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e6b99e7b13da33547fcc8388fe867e851ee0bda;p=mesa.git glcpp: Add a test for a macro that implements token pasting twice. This is something that piglit is exercising that currently fails. Reviewed-by: Kenneth Graunke Signed-off-by: Carl Worth --- diff --git a/src/glsl/glcpp/tests/096-paste-twice.c b/src/glsl/glcpp/tests/096-paste-twice.c new file mode 100644 index 00000000000..8da756fcba4 --- /dev/null +++ b/src/glsl/glcpp/tests/096-paste-twice.c @@ -0,0 +1,3 @@ +#define paste_twice(a,b,c) a ## b ## c +paste_twice(just, one, token) + diff --git a/src/glsl/glcpp/tests/096-paste-twice.c.expected b/src/glsl/glcpp/tests/096-paste-twice.c.expected new file mode 100644 index 00000000000..e40194112aa --- /dev/null +++ b/src/glsl/glcpp/tests/096-paste-twice.c.expected @@ -0,0 +1,4 @@ + +justonetoken + +