From 8e6b99e7b13da33547fcc8388fe867e851ee0bda Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 29 Sep 2011 16:50:40 -0700 Subject: [PATCH] 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 --- src/glsl/glcpp/tests/096-paste-twice.c | 3 +++ src/glsl/glcpp/tests/096-paste-twice.c.expected | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 src/glsl/glcpp/tests/096-paste-twice.c create mode 100644 src/glsl/glcpp/tests/096-paste-twice.c.expected 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 + + -- 2.30.2