glcpp: Add a test for a macro that implements token pasting twice.
authorCarl Worth <cworth@cworth.org>
Thu, 29 Sep 2011 23:50:40 +0000 (16:50 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 30 Sep 2011 18:43:40 +0000 (11:43 -0700)
This is something that piglit is exercising that currently fails.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Carl Worth <cworth@cworth.org>
src/glsl/glcpp/tests/096-paste-twice.c [new file with mode: 0644]
src/glsl/glcpp/tests/096-paste-twice.c.expected [new file with mode: 0644]

diff --git a/src/glsl/glcpp/tests/096-paste-twice.c b/src/glsl/glcpp/tests/096-paste-twice.c
new file mode 100644 (file)
index 0000000..8da756f
--- /dev/null
@@ -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 (file)
index 0000000..e401941
--- /dev/null
@@ -0,0 +1,4 @@
+
+justonetoken
+
+