From 7bb3403e0172a440b8100bcf1db8462f50a254cc Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 29 Sep 2011 17:04:09 -0700 Subject: [PATCH] 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 --- src/glsl/glcpp/tests/097-paste-with-non-function-macro.c | 3 +++ .../glcpp/tests/097-paste-with-non-function-macro.c.expected | 4 ++++ 2 files changed, 7 insertions(+) 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 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 + + -- 2.30.2