[Mesa-dev] [PATCH 1/6] glcpp: Add a test for a macro that implements token pasting twice.

Carl Worth cworth at cworth.org
Thu Sep 29 23:00:25 PDT 2011


This is something that piglit is exercising that currently fails.
---
 src/glsl/glcpp/tests/096-paste-twice.c          |    3 +++
 src/glsl/glcpp/tests/096-paste-twice.c.expected |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)
 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 0000000..8da756f
--- /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 0000000..e401941
--- /dev/null
+++ b/src/glsl/glcpp/tests/096-paste-twice.c.expected
@@ -0,0 +1,4 @@
+
+justonetoken
+
+
-- 
1.7.6.3



More information about the mesa-dev mailing list