style: clean tests

* tests/named-refs.at: here.
This commit is contained in:
Akim Demaille
2019-01-04 12:36:50 +01:00
parent df732955ff
commit eb2b5aef0a
2 changed files with 6 additions and 7 deletions

View File

@@ -272,12 +272,12 @@ static int power (int base, int exponent);
]AT_YYLEX_DECLARE_EXTERN[
}
]AT_CXX_IF([AT_LOCATION_TYPE_SPAN_IF([[
]AT_LOCATION_TYPE_SPAN_IF([[
%initial-action
{
@$.first.l = @$.first.c = 1;
@$.last = @$.first;
}]])])[
}]])[
/* Bison Declarations */
%token CALC_EOF 0 "end of input"
@@ -333,8 +333,7 @@ power (int base, int exponent)
return res;
}
]AT_CXX_IF(
[AT_LOCATION_TYPE_SPAN_IF([[
]AT_LOCATION_TYPE_SPAN_IF([[
namespace
{
std::ostream&
@@ -348,7 +347,7 @@ namespace
return o;
}
}
]])])[
]])[
]AT_YYERROR_DEFINE[
]AT_DEFINES_IF([],
[AT_CALC_LEX

View File

@@ -18,6 +18,7 @@
# FIXME: Duplication with calc.at.
AT_BANNER([[Named references tests.]])
# FIXME: large duplication with calc.at.
AT_SETUP([Tutorial calculator])
AT_BISON_OPTION_PUSHDEFS
AT_DATA_GRAMMAR([test.y],
@@ -86,8 +87,7 @@ exp:
]AT_YYERROR_DEFINE[
static int get_char (void)
{
int res = getc (input);
return res;
return getc (input);
}
static void unget_char (int c)