From: Akim Demaille Date: Thu, 9 Feb 2012 09:04:32 +0000 (+0100) Subject: tests: don't require locations uselessly. X-Git-Tag: v2.7.90~538 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/a8c5aaa53e2fe70a0b1c86138f5ed4f8cd11a93b?ds=inline tests: don't require locations uselessly. * tests/c++.at (Syntax error discarding no lookahead): Contrary to 2.5, C++ parsers can work without locations. --- diff --git a/tests/c++.at b/tests/c++.at index b4218d3d..d81a1fb3 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -385,12 +385,11 @@ AT_DATA_GRAMMAR([[input.yy]], %code { #include - int yylex (yy::parser::semantic_type *, yy::location *); + int yylex (yy::parser::semantic_type *); #define USE(Args) } %defines -%locations %define parse.error verbose %nonassoc 'a' ; @@ -420,14 +419,14 @@ start: 'b' consistent-error ; %% int -yylex (yy::parser::semantic_type *, yy::location *) +yylex (yy::parser::semantic_type *) { static char const *input = "aa"; return *input++; } void -yy::parser::error (const location_type &, const std::string &m) +yy::parser::error (const std::string &m) { std::cerr << m << std::endl; }