X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d782395d52519fabb2cac3bd479246cc6de7efa8..798096e1deaeb13a06e62de5c73487537e220e3c:/tests/push.at diff --git a/tests/push.at b/tests/push.at index 91c51f31..53b20b7d 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 %define push_pull "push" +%define api.pure %define api.push_pull "push" %% @@ -71,7 +71,7 @@ main (void) } ]]) -AT_CHECK([[bison -o input.c input.y]]) +AT_BISON_CHECK([[-o input.c input.y]]) AT_COMPILE([[input]]) AT_PARSER_CHECK([[./input]]) @@ -92,7 +92,7 @@ AT_DATA_GRAMMAR([[input.y]], int yylex (void); %} -%define push_pull "both" +%define api.push_pull "both" %% @@ -135,7 +135,7 @@ main (void) } ]]) -AT_CHECK([[bison -o input.c input.y]]) +AT_BISON_CHECK([[-o input.c input.y]]) AT_COMPILE([[input]]) AT_PARSER_CHECK([[./input]], 0, [], [[cannot allocate multiple impure push-parser instances @@ -158,13 +158,13 @@ AT_SETUP([[Push Parsing: Unsupported Skeletons]]) AT_DATA([[input.y]], [[%glr-parser -%define push_pull "push" +%define api.push_pull "push" %% start: ; ]]) -AT_CHECK([[bison input.y]], [0], [], -[[input.y:2.9-17: warning: %define variable `push_pull' is not used +AT_BISON_CHECK([[input.y]], [0], [], +[[input.y:2.9-21: warning: %define variable `api.push_pull' is not used ]]) AT_CLEANUP