AT_CLEANUP
-## ---------------------------------------------------- ##
-## Undeclared symbols used for a printer or destructor. ##
-## ---------------------------------------------------- ##
+## ----------------------------------------------------- ##
+## Undeclared symbols used for a printer or destructor. ##
+## ----------------------------------------------------- ##
AT_SETUP([Undeclared symbols used for a printer or destructor])
AT_DATA([[input.y]],
-[[%printer {} token1
-%destructor {} token2
+[[%printer {} foo baz
+%destructor {} bar
%%
-exp: "a";
+exp: bar;
]])
-AT_BISON_CHECK([input.y], [0], [],
-[[input.y:1.13-18: warning: symbol token1 is used, but is not defined as a token and has no rules
-input.y:2.16-21: warning: symbol token2 is used, but is not defined as a token and has no rules
-input.y: warning: 2 nonterminals useless in grammar
-input.y:1.13-18: warning: nonterminal useless in grammar: token1
-input.y:2.16-21: warning: nonterminal useless in grammar: token2
+AT_BISON_CHECK([input.y], [1], [],
+[[input.y:2.16-18: symbol bar is used, but is not defined as a token and has no rules
+input.y:1.17-19: warning: symbol baz is used, but is not defined as a token and has no rules
+input.y:1.13-15: warning: symbol foo is used, but is not defined as a token and has no rules
]])
AT_CLEANUP