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:
@@ -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.
|
||||
*/
|
||||
\
|
||||
|
||||
/* \ */
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user