]> git.saurik.com Git - bison.git/blobdiff - tests/input.at
symtab: refactoring
[bison.git] / tests / input.at
index 0e0b0041ec8fb6bee5efea5aac5861a3dd754248..200fa076fa00fed03ac6daaa101c6075b5046333 100644 (file)
@@ -271,26 +271,24 @@ input.y:5.10-24: previous declaration
 
 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