glcpp: Add test case for recently fixed loop-control underflow bug.

To trigger the bug, it suffices to have a line-continuation followed by
a newline and then a non-line-continuation backslash.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Carl Worth 2013-06-03 12:49:10 -07:00
parent d8eeb1d330
commit 610fe6da79
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,12 @@
/* This test case is the minimal case to replicate the bug reported here:
*
* https://bugs.freedesktop.org/show_bug.cgi?id=65112
*
* To trigger the bug, there must be a line-continuation sequence
* (backslash newline), then an additional newline character, and
* finally another backslash that is not part of a line-continuation
* sequence.
*/
\
/* \ */