From: Joel E. Denny Date: Sun, 20 Dec 2009 21:03:07 +0000 (-0500) Subject: tests: cleanup. X-Git-Tag: v2.7.90~735 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/5335b65a79189afbbd27ecb55d76e74a4fe31863 tests: cleanup. * tests/c++.at (Syntax error discarding no lookahead): Don't ignore stderr. Instead, eliminate remaining warnings. --- diff --git a/ChangeLog b/ChangeLog index 1c15cc5e..e9845692 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-12-20 Joel E. Denny + + tests: cleanup. + * tests/c++.at (Syntax error discarding no lookahead): Don't + ignore stderr. Instead, eliminate remaining warnings. + 2009-12-18 Joel E. Denny lalr1.cc: don't discard non-existent lookahead on syntax error. diff --git a/tests/c++.at b/tests/c++.at index ce64d6d6..6a8d2c5d 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -412,6 +412,10 @@ consistent-error: | /*empty*/ %prec 'a' ; +// Provide another context in which all rules are useful so that this +// test case looks a little more realistic. +start: 'b' consistent-error ; + %% int @@ -434,7 +438,7 @@ main (void) return parser.parse (); } ]]) -AT_BISON_CHECK([[-o input.cc input.yy]], [[0]], [[]], [[ignore-nolog]]) +AT_BISON_CHECK([[-o input.cc input.yy]]) AT_COMPILE_CXX([[input]]) # This used to print "Discarding 'a'." again at the end. AT_PARSER_CHECK([[./input]], [[1]], [[]],