void yyerror (char const *msg);
%}
-%pure-parser %push-parser
+%define api.pure %define api.push_pull "push"
%%
AT_CLEANUP
-
## ----------------------------------------- ##
## Push Parsing: Multiple impure instances. ##
## ----------------------------------------- ##
int yylex (void);
%}
-%push-pull-parser
+%define api.push_pull "both"
%%
]])
AT_CLEANUP
+
+## ------------------------------------- ##
+## Push Parsing: Unsupported Skeletons. ##
+## ------------------------------------- ##
+
+AT_SETUP([[Push Parsing: Unsupported Skeletons]])
+
+AT_DATA([[input.y]],
+[[%glr-parser
+%define api.push_pull "push"
+%%
+start: ;
+]])
+
+AT_CHECK([[bison input.y]], [0], [],
+[[input.y:2.9-21: warning: %define variable `api.push_pull' is not used
+]])
+
+AT_CLEANUP