mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: compute verbose error messages from the custom ones
We use a different format to check parse.error custom. Compute the "verbose" one from it instead of forcing the test author to provide the various formats of expected error messages. * tests/calc.at (_AT_CHECK_CALC_ERROR): Handle this transformation when needed. Simplify callers.
This commit is contained in:
@@ -574,6 +574,8 @@ static int location_print (FILE *yyo, ]AT_YYLTYPE[ const * const yylocp);
|
||||
static ]AT_YYERROR_DECLARE_EXTERN])
|
||||
|
||||
|
||||
# "%define parse.error custom" uses a different format, easy to check.
|
||||
# The "verbose" one can be computed from it (see _AT_CHECK_CALC_ERROR).
|
||||
m4_define([AT_YYERROR_DEFINE(c)],
|
||||
[AT_LOCATION_IF([[
|
||||
# if defined ]AT_YYLTYPE[_IS_TRIVIAL && ]AT_YYLTYPE[_IS_TRIVIAL
|
||||
|
||||
Reference in New Issue
Block a user