mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: enable support for --debug
* tests/c++.at (Variants): Here. And remove useless clutter when api.token.constructor is enabled.
This commit is contained in:
@@ -113,7 +113,7 @@ AT_CLEANUP
|
|||||||
m4_pushdef([AT_TEST],
|
m4_pushdef([AT_TEST],
|
||||||
[AT_SETUP([Variants $1])
|
[AT_SETUP([Variants $1])
|
||||||
|
|
||||||
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc" $1])
|
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc" %debug $1])
|
||||||
# Store strings and integers in a list of strings.
|
# Store strings and integers in a list of strings.
|
||||||
AT_DATA_GRAMMAR([list.yy],
|
AT_DATA_GRAMMAR([list.yy],
|
||||||
[[%debug
|
[[%debug
|
||||||
@@ -203,13 +203,13 @@ item:
|
|||||||
| NUMBER { if ($][1 == 3) YYERROR; else $][$ = string_cast ($][1); }
|
| NUMBER { if ($][1 == 3) YYERROR; else $][$ = string_cast ($][1); }
|
||||||
;
|
;
|
||||||
%%
|
%%
|
||||||
|
]AT_TOKEN_CTOR_IF([],
|
||||||
#ifdef TWO_STAGE_BUILD
|
[[#ifdef TWO_STAGE_BUILD
|
||||||
# define BUILD(Type, Value) build<Type> () = Value
|
# define BUILD(Type, Value) build<Type> () = Value
|
||||||
#else
|
#else
|
||||||
# define BUILD(Type, Value) build (Value)
|
# define BUILD(Type, Value) build (Value)
|
||||||
#endif
|
#endif
|
||||||
|
]])[
|
||||||
#define STAGE_MAX 5
|
#define STAGE_MAX 5
|
||||||
namespace yy
|
namespace yy
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user