summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2011-09-29 17:04:09 -0700
committerCarl Worth <cworth@cworth.org>2011-09-30 11:44:04 -0700
commit7bb3403e0172a440b8100bcf1db8462f50a254cc (patch)
tree167b53225f97626b937e0cb5981f2b94df8df3bb /src
parent3c01a589448b92945f26bd7e3bfa75155c06f3cf (diff)
downloadexternal_mesa3d-7bb3403e0172a440b8100bcf1db8462f50a254cc.zip
external_mesa3d-7bb3403e0172a440b8100bcf1db8462f50a254cc.tar.gz
external_mesa3d-7bb3403e0172a440b8100bcf1db8462f50a254cc.tar.bz2
glcpp: Test a non-function-like macro using the token paste operator
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>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/glcpp/tests/097-paste-with-non-function-macro.c3
-rw-r--r--src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected4
2 files changed, 7 insertions, 0 deletions
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
+
+