mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 18:23:03 +00:00
tests: cleanup.
* tests/c++.at (Syntax error discarding no lookahead): Don't ignore stderr. Instead, eliminate remaining warnings.
This commit is contained in:
@@ -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>
|
2009-12-18 Joel E. Denny <jdenny@clemson.edu>
|
||||||
|
|
||||||
lalr1.cc: don't discard non-existent lookahead on syntax error.
|
lalr1.cc: don't discard non-existent lookahead on syntax error.
|
||||||
|
|||||||
@@ -412,6 +412,10 @@ consistent-error:
|
|||||||
| /*empty*/ %prec 'a'
|
| /*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
|
int
|
||||||
@@ -434,7 +438,7 @@ main (void)
|
|||||||
return parser.parse ();
|
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]])
|
AT_COMPILE_CXX([[input]])
|
||||||
# This used to print "Discarding 'a'." again at the end.
|
# This used to print "Discarding 'a'." again at the end.
|
||||||
AT_PARSER_CHECK([[./input]], [[1]], [[]],
|
AT_PARSER_CHECK([[./input]], [[1]], [[]],
|
||||||
|
|||||||
Reference in New Issue
Block a user