mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* src/scan-gram.l: Be robust to BRACED_CODE appearing before any
rule. Reported by Mickael Labau. * tests/input.at (Torturing the Scanner): Test it.
This commit is contained in:
@@ -204,6 +204,14 @@ AT_CHECK([bison input.y], [1], [],
|
||||
]])
|
||||
|
||||
|
||||
AT_DATA([input.y],
|
||||
[{}
|
||||
])
|
||||
AT_CHECK([bison input.y], [1], [],
|
||||
[[input.y:1.1-2: syntax error, unexpected {...}
|
||||
]])
|
||||
|
||||
|
||||
AT_DATA_GRAMMAR([input.y],
|
||||
[[%{
|
||||
/* This is seen in GCC: a %{ and %} in middle of a comment. */
|
||||
|
||||
Reference in New Issue
Block a user