glcpp: Add new test showing bug where a trailing ':' prevents macro expansion

This demonstrates a bug that was recently triggered in piglit.

Here is the original bug report (containing a test case almost identical
to this one):

	https://bugs.freedesktop.org/show_bug.cgi?id=44764

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Carl Worth
2012-01-21 09:22:24 -08:00
parent 2e8f8cb383
commit e931b0e05b
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#define one 1
#define two 2
switch (1) {
case one + two:
break;
}

View File

@@ -0,0 +1,8 @@
switch (1) {
case 1 + 2:
break;
}