* tests/c++.at: here.
(Doxygen): Pass %define, so that files such as position.hh etc.
are generated, instead of putting everything into input.hh.
AT_DATA([input.yy],
[[%skeleton "lalr1.cc"
%locations
AT_DATA([input.yy],
[[%skeleton "lalr1.cc"
%locations
%debug
%%
exp: /* empty */;
%debug
%%
exp: /* empty */;
-AT_BISON_CHECK([-o input.cc input.yy], 0)
+AT_BISON_CHECK([-o input.cc input.yy])
AT_DATA([Doxyfile],
[# The PROJECT_NAME tag is a single word (or a sequence of words
AT_DATA([Doxyfile],
[# The PROJECT_NAME tag is a single word (or a sequence of words
# so don't check compilation.
m4_pushdef([AT_TEST],
[AT_BISON_OPTION_PUSHDEFS([%language "C++" %define api.namespace {$1}])
# so don't check compilation.
m4_pushdef([AT_TEST],
[AT_BISON_OPTION_PUSHDEFS([%language "C++" %define api.namespace {$1}])
-AT_DATA_GRAMMAR([[input.y]],
+AT_DATA_GRAMMAR([[input.yy]],
[[%language "C++"
%define api.namespace {]$1[}
%union { int i; }
[[%language "C++"
%define api.namespace {]$1[}
%union { int i; }
-AT_BISON_CHECK([[-o input.cc input.y]])
+AT_BISON_CHECK([[-o input.cc input.yy]])
-[AT_COMPILE_CXX([[input]], [[input.cc]])
+[AT_COMPILE_CXX([[input]])
AT_PARSER_CHECK([[./input]])])
AT_BISON_OPTION_POPDEFS
])
AT_PARSER_CHECK([[./input]])])
AT_BISON_OPTION_POPDEFS
])
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc"])
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc"])
-AT_DATA_GRAMMAR([[input.yy]],
+AT_DATA_GRAMMAR([[input.y]],
[[%skeleton "lalr1.cc"
%code {
[[%skeleton "lalr1.cc"
%code {
-AT_BISON_CHECK([[-o input.cc input.yy]])
-AT_COMPILE_CXX([[input]])
+AT_FULL_COMPILE([[input]])
# This used to print "Discarding 'a'." again at the end.
AT_PARSER_CHECK([[./input]], [[1]], [[]],
[[syntax error
# This used to print "Discarding 'a'." again at the end.
AT_PARSER_CHECK([[./input]], [[1]], [[]],
[[syntax error
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc"])
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc"])
-AT_DATA_GRAMMAR([[input.yy]],
+AT_DATA_GRAMMAR([[input.y]],
[[%skeleton "lalr1.cc"
%code
[[%skeleton "lalr1.cc"
%code
-AT_BISON_CHECK([[-o input.cc input.yy]])
-AT_COMPILE_CXX([[input]])
+AT_FULL_COMPILE([[input]])
AT_PARSER_CHECK([[./input]], [[0]], [[]],
[[error: invalid expression
AT_PARSER_CHECK([[./input]], [[0]], [[]],
[[error: invalid expression
-## ------------------------------------ ##
-## C++ GLR parser identifier shadowing ##
-## ------------------------------------ ##
+## ------------------------------------- ##
+## C++ GLR parser identifier shadowing. ##
+## ------------------------------------- ##
AT_SETUP([[C++ GLR parser identifier shadowing]])
AT_SETUP([[C++ GLR parser identifier shadowing]])
void yy::parser::error (std::string const&)
{}
void yy::parser::error (std::string const&)
{}