summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2011-09-29 16:50:40 -0700
committerCarl Worth <[email protected]>2011-09-30 11:43:40 -0700
commit8e6b99e7b13da33547fcc8388fe867e851ee0bda (patch)
tree64c3a7fe3dad73886b1fafb3164147aa372376e3 /src/glsl
parent9c72b729f34e1d544a66222c90561f93db6cb132 (diff)
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 <[email protected]> Signed-off-by: Carl Worth <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/glcpp/tests/096-paste-twice.c3
-rw-r--r--src/glsl/glcpp/tests/096-paste-twice.c.expected4
2 files changed, 7 insertions, 0 deletions
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
+
+