mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
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>
This commit is contained in:
parent
3c01a58944
commit
7bb3403e01
2 changed files with 7 additions and 0 deletions
3
src/glsl/glcpp/tests/097-paste-with-non-function-macro.c
Normal file
3
src/glsl/glcpp/tests/097-paste-with-non-function-macro.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#define PASTE_MACRO one ## token
|
||||
PASTE_MACRO
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
onetoken
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue