From: Carl Worth Date: Fri, 30 Sep 2011 00:04:09 +0000 (-0700) Subject: glcpp: Test a non-function-like macro using the token paste operator X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bb3403e0172a440b8100bcf1db8462f50a254cc;p=mesa.git 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 Signed-off-by: Carl Worth --- 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 00000000000..0f46835c29e --- /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 00000000000..af92187ee90 --- /dev/null +++ b/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected @@ -0,0 +1,4 @@ + +onetoken + +