[Mesa-dev] [PATCH 3/6] glcpp: Test a non-function-like macro using the token paste operator
Carl Worth
cworth at cworth.org
Thu Sep 29 23:00:27 PDT 2011
Apparently we never implemented this, (but we've got a GLSL 1.30 test
in piglit that is exercising this case).
---
.../tests/097-paste-with-non-function-macro.c | 3 +++
.../097-paste-with-non-function-macro.c.expected | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
create mode 100644 src/glsl/glcpp/tests/097-paste-with-non-function-macro.c
create mode 100644 src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected
diff --git a/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c b/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c
new file mode 100644
index 0000000..0f46835
--- /dev/null
+++ b/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c
@@ -0,0 +1,3 @@
+#define PASTE_MACRO one ## token
+PASTE_MACRO
+
diff --git a/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected b/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected
new file mode 100644
index 0000000..af92187
--- /dev/null
+++ b/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected
@@ -0,0 +1,4 @@
+
+onetoken
+
+
--
1.7.6.3
More information about the mesa-dev
mailing list