From: Akim Demaille Date: Thu, 25 Mar 2010 16:02:38 +0000 (+0100) Subject: tests: fix 250: parse.error=verbose overflow. X-Git-Tag: v2.7.90~709 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/d6b347e43324926f750b22709e2c5262f60fa991?hp=b867584028d0c7ae0f0c32918cb87d4ec7f2caa6 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. --- diff --git a/ChangeLog b/ChangeLog index bf67e120..e8091e3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-03-25 Akim Demaille + + 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. + 2010-03-23 Joel E. Denny portability: fix for BSD make. diff --git a/tests/regression.at b/tests/regression.at index 3ef85419..15334471 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -1366,9 +1366,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 + #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