* data/yacc.c (yytnamerr): Fix typo: local var should be of type

YYSIZE_T, not size_t.
* tests/regression.at (Trivial grammars): New test, to catch
the error fixed by the above patch.
This commit is contained in:
Paul Eggert
2006-05-15 05:10:06 +00:00
parent cd8b579166
commit 276f48df88
3 changed files with 34 additions and 1 deletions

View File

@@ -21,6 +21,32 @@
AT_BANNER([[Regression tests.]])
## ------------------ ##
## Trivial grammars. ##
## ------------------ ##
AT_SETUP([Trivial grammars])
AT_DATA_GRAMMAR([input.y],
[[%{
void yyerror (char const *);
int yylex (void);
%}
%error-verbose
%%
program: 'x';
]])
AT_CHECK([bison -o input.c input.y])
AT_COMPILE([input.o], [-c input.c])
AT_CLEANUP
## ------------------------- ##
## Early token definitions. ##
## ------------------------- ##