traces: display the Bison version

* src/main.c (main): When traces are enabled, display the Bison
version.
* tests/conflicts.at, tests/report.at, tests/sets.at:
Use AT_PACKAGE_VERSION (for package.m4) instead of post-processing the
output.
This commit is contained in:
Akim Demaille
2021-01-30 09:43:57 +01:00
parent de93a0728b
commit fc0dbb3bba
5 changed files with 27 additions and 24 deletions

View File

@@ -323,7 +323,8 @@ fact: "num"
]])
AT_BISON_CHECK([[--trace=grammar -o input.c input.y]], [], [],
[[input.y: warning: 1 nonterminal useless in grammar [-Wother]
[[bison (GNU Bison) ]AT_PACKAGE_VERSION[
input.y: warning: 1 nonterminal useless in grammar [-Wother]
input.y: warning: 1 rule useless in grammar [-Wother]
input.y:4.1-7: warning: nonterminal useless in grammar: useless [-Wother]
Reduced Grammar
@@ -409,7 +410,8 @@ exp:
]])
AT_BISON_CHECK([[--trace=grammar -o input.c input.y]], [], [],
[[Reduced Grammar
[[bison (GNU Bison) ]AT_PACKAGE_VERSION[
Reduced Grammar
ntokens = 10, nnterms = 2, nsyms = 12, nrules = 8, nritems = 29