diff options
author | Carl Worth <cworth@cworth.org> | 2011-09-29 16:50:40 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-09-30 11:43:40 -0700 |
commit | 8e6b99e7b13da33547fcc8388fe867e851ee0bda (patch) | |
tree | 64c3a7fe3dad73886b1fafb3164147aa372376e3 /src/glsl/glcpp | |
parent | 9c72b729f34e1d544a66222c90561f93db6cb132 (diff) |
glcpp: Add a test for a macro that implements token pasting twice.
This is something that piglit is exercising that currently fails.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Carl Worth <cworth@cworth.org>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r-- | src/glsl/glcpp/tests/096-paste-twice.c | 3 | ||||
-rw-r--r-- | src/glsl/glcpp/tests/096-paste-twice.c.expected | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/096-paste-twice.c b/src/glsl/glcpp/tests/096-paste-twice.c new file mode 100644 index 00000000000..8da756fcba4 --- /dev/null +++ b/src/glsl/glcpp/tests/096-paste-twice.c @@ -0,0 +1,3 @@ +#define paste_twice(a,b,c) a ## b ## c +paste_twice(just, one, token) + diff --git a/src/glsl/glcpp/tests/096-paste-twice.c.expected b/src/glsl/glcpp/tests/096-paste-twice.c.expected new file mode 100644 index 00000000000..e40194112aa --- /dev/null +++ b/src/glsl/glcpp/tests/096-paste-twice.c.expected @@ -0,0 +1,4 @@ + +justonetoken + + |