tests: fix 250: parse.error=verbose overflow.

* tests/regression.at (parse.error=verbose overflow): Avoid the
	double inclusion of stdlib.h as it triggers hard errors.
(cherry picked from commit d6b347e433)
This commit is contained in:
Akim Demaille
2010-03-25 17:02:38 +01:00
parent 9097fda06c
commit 23761f428a
2 changed files with 11 additions and 2 deletions

View File

@@ -1374,9 +1374,12 @@ AT_DATA_GRAMMAR([input.y],
large enough to overflow size_t. */
#define YYSIZE_T unsigned char
/* Bring in malloc so yacc.c doesn't try to provide a malloc prototype
using our YYSIZE_T. */
/* Bring in malloc and set _STDLIB_H so yacc.c doesn't try to
provide a malloc prototype using our YYSIZE_T. */
#include <stdlib.h>
#ifndef _STDLIB_H
# define _STDLIB_H 1
#endif
/* Max depth is usually much smaller than YYSTACK_ALLOC_MAXIMUM, and
we don't want gcc to warn everywhere this constant would be too big