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:
Akim Demaille
2002-11-15 08:56:40 +00:00
parent edbc04c709
commit b0f98b1016
3 changed files with 31 additions and 20 deletions

View File

@@ -63,8 +63,7 @@ static YYSTYPE exprMerge (YYSTYPE x0, YYSTYPE x1)
int
main (void)
{
yyparse ();
return 0;
return yyparse ();
}
int