glcpp: Test a non-function-like macro using the token paste operator
authorCarl Worth <cworth@cworth.org>
Fri, 30 Sep 2011 00:04:09 +0000 (17:04 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 30 Sep 2011 18:44:04 +0000 (11:44 -0700)
Apparently we never implemented this, (but we've got a GLSL 1.30 test
in piglit that is exercising this case).

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

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 (file)
index 0000000..0f46835
--- /dev/null
@@ -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 (file)
index 0000000..af92187
--- /dev/null
@@ -0,0 +1,4 @@
+
+onetoken
+
+