X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9a1e998918ff091143a62577a1404619df43c4c4..0a2c51373ae2c31e264e8b6ad0be2324ba29cb0b:/tests/actions.at diff --git a/tests/actions.at b/tests/actions.at index 40940089..d79a33ec 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -186,7 +186,7 @@ m4_ifval([$6], [%union }]) [ %{ -]AT_LALR1_CC_IF([typedef yy::Location YYLTYPE; +]AT_LALR1_CC_IF([typedef yy::location YYLTYPE; m4_ifval([$6], , [#define YYSTYPE int])]) [static int yylex (]AT_LEX_FORMALS[); ]AT_LALR1_CC_IF([], [static void yyerror (const char *msg);]) @@ -311,16 +311,17 @@ yylex (]AT_LEX_FORMALS[) ]AT_LALR1_CC_IF( [/* A C++ error reporting function. */ void -yy::Parser::error_ () +yy::parser::error (const location& l, const std::string& m) { - printf ("%d-%d: %s\n", RANGE (location), message.c_str()); + printf ("%d-%d: %s\n", RANGE (l), m.c_str()); } static bool yydebug; int yyparse () { - yy::Parser parser (yydebug); + yy::parser parser; + parser.set_debug_level (yydebug); return parser.parse (); } ], @@ -444,11 +445,12 @@ Parsing FAILED. ]) -# AT_CHECK_PRINTER_AND_DESTRUCTOR([BISON-OPTIONS], [UNION-FLAG]) -# -------------------------------------------------------------- +# AT_CHECK_PRINTER_AND_DESTRUCTOR([BISON-OPTIONS], [UNION-FLAG], [SKIP_FLAG]) +# --------------------------------------------------------------------------- m4_define([AT_CHECK_PRINTER_AND_DESTRUCTOR], [AT_SETUP([Printers and Destructors $2: $1]) +$3 _AT_CHECK_PRINTER_AND_DESTRUCTOR($[1], $[2], $[3], $[4], [%error-verbose %debug @@ -462,7 +464,12 @@ AT_CLEANUP AT_CHECK_PRINTER_AND_DESTRUCTOR([]) AT_CHECK_PRINTER_AND_DESTRUCTOR([], [with union]) + +# These tests currently fail on a Debian GNU/Linux 3.0r2 x86 host, +# but the 2nd test succeeds on a Solaris 9 sparc hosts (Forte 7 cc). +# Skip them until we figure out what the problem is. AT_CHECK_PRINTER_AND_DESTRUCTOR([%defines %skeleton "lalr1.cc"]) AT_CHECK_PRINTER_AND_DESTRUCTOR([%defines %skeleton "lalr1.cc"], [with union]) + AT_CHECK_PRINTER_AND_DESTRUCTOR([%glr-parser]) AT_CHECK_PRINTER_AND_DESTRUCTOR([%glr-parser], [with union])