X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/1b17b01d0fa00512e2d7b561757336bff9784fa0..a005a9c4dc5588fc017a1cb1d19c1560e0e68943:/tests/push.at diff --git a/tests/push.at b/tests/push.at index 16ca4132..6e2bd8b6 100644 --- a/tests/push.at +++ b/tests/push.at @@ -33,7 +33,7 @@ AT_DATA_GRAMMAR([[input.y]], void yyerror (char const *msg); %} -%pure-parser %push-parser +%define api.pure %define api.push_pull "push" %% @@ -77,7 +77,6 @@ AT_PARSER_CHECK([[./input]]) AT_CLEANUP - ## ----------------------------------------- ## ## Push Parsing: Multiple impure instances. ## ## ----------------------------------------- ## @@ -93,7 +92,7 @@ AT_DATA_GRAMMAR([[input.y]], int yylex (void); %} -%push-pull-parser +%define api.push_pull "both" %% @@ -150,3 +149,22 @@ cannot allocate multiple impure push-parser instances ]]) 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