mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53:04 +00:00
Always check the value returned by yyparse.
* tests/calc.at (_AT_DATA_CALC_Y): Have `main' exit with the value returned by yyparse. (_AT_CHECK_CALC_ERROR): Take the expected exit value as argument. Adjust calls. * tests/glr-regr1.at (glr-regr1.y): Have `main' exit with the value returned by yyparse.
This commit is contained in:
@@ -63,8 +63,7 @@ static YYSTYPE exprMerge (YYSTYPE x0, YYSTYPE x1)
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
yyparse ();
|
||||
return 0;
|
||||
return yyparse ();
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user