mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
tests: fix syntax-check errors
Reported by Théophile Ranquet. * tests/c++.at: Use AT_PARSER_CHECK. Avoid using "strcmp", which triggers an error from syntax-check.
This commit is contained in:
@@ -177,8 +177,8 @@ main ()
|
||||
|
||||
AT_BISON_CHECK([-o list.cc list.yy])
|
||||
AT_COMPILE_CXX([list])
|
||||
AT_CHECK([./list], 0,
|
||||
[(0, 1, 2, 4)
|
||||
AT_PARSER_CHECK([./list], 0,
|
||||
[(0, 1, 2, 4)
|
||||
])
|
||||
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
@@ -687,7 +687,7 @@ main (int argc, const char *argv[])
|
||||
input = argv[1];
|
||||
break;
|
||||
case 3:
|
||||
assert (!strcmp (argv[1], "--debug"));
|
||||
assert (std::string(argv[1]) == "--debug");
|
||||
debug = 1;
|
||||
input = argv[2];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user