tests: cleanup.

* tests/c++.at (Syntax error discarding no lookahead): Don't
ignore stderr.  Instead, eliminate remaining warnings.
This commit is contained in:
Joel E. Denny
2009-12-20 16:03:07 -05:00
parent d59beda068
commit 5335b65a79
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2009-12-20 Joel E. Denny <jdenny@clemson.edu>
tests: cleanup.
* tests/c++.at (Syntax error discarding no lookahead): Don't
ignore stderr. Instead, eliminate remaining warnings.
2009-12-18 Joel E. Denny <jdenny@clemson.edu>
lalr1.cc: don't discard non-existent lookahead on syntax error.

View File

@@ -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]], [[]],