## Invalid $n. ##
## ------------ ##
-AT_SETUP([Invalid \$n and @n])
+AT_SETUP([Invalid $n and @n])
AT_DATA([input.y],
[[%%
%destructor { destroy ($$); } <*>
%printer { destroy ($$); } <*>
-%destructor { destroy ($$); } <!> <!>
-%printer { destroy ($$); } <!> <!>
+%destructor { destroy ($$); } <> <>
+%printer { destroy ($$); } <> <>
-%destructor { destroy ($$); } <!>
-%printer { destroy ($$); } <!>
+%destructor { destroy ($$); } <>
+%printer { destroy ($$); } <>
%%
%destructor { destroy ($$); } <*>;
%printer { destroy ($$); } <*>;
-%destructor { destroy ($$); } <!>;
-%printer { destroy ($$); } <!>;
+%destructor { destroy ($$); } <>;
+%printer { destroy ($$); } <>;
]])
AT_CHECK([bison input.y], [1], [],
AT_SETUP([Unused values with default %destructor])
AT_DATA([[input.y]],
-[[%destructor { destroy ($$); } <!>
+[[%destructor { destroy ($$); } <>
%type <tag> tagged
%%
%{
static void yyerror (const char *s);
-static int yylex (void);
+int yylex (void);
%}
%type <ival> '@<:@'
return res;
}
-static int
+int
yylex (void)
{
static char const input[] = "@<:@\1\2$@{@oline@__@&t@oline__\
[[typedef int value;
#include "input.h"
+#ifndef YYPUSH_DECLS
int yyparse (void);
+#else
+int yylex (void);
+#endif
int
main (void)