tests: check symbol/token renumbering

In some extreme situations, with lots of useless tokens, Bison was
numbering them incorrectly, which resulted in a broken grammar.
<https://lists.gnu.org/r/bison-patches/2021-03/msg00001.html>
commit a774839ca8.

* tests/regression.at (Useless Tokens): New.
This commit is contained in:
Akim Demaille
2021-08-09 08:25:37 +02:00
parent b2a00ed5dd
commit e4e3cbce77
2 changed files with 297 additions and 9 deletions

8
TODO
View File

@@ -8,14 +8,6 @@ The default case is scanning char-per-char.
make it more eager?
** Missing tests
commit c22902e360e0fbbe9fd5657dcf107e03166da309
Author: Akim Demaille <akim.demaille@gmail.com>
Date: Sat Jan 23 18:40:15 2021 +0100
tables: fix handling for useless tokens
See https://github.com/akimd/bison/issues/72#issuecomment-766153154
commit 2c294c132528ede23d8ae4959783a67e9ff05ac5
Author: Vincent Imbimbo <vmi6@cornell.edu>
Date: Sat Jan 23 13:25:18 2021 -0500