X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d4e985d587a0111c8ad39cd56b815a7f63540116..235892350f6547e5c6a350b85561eda14409a0b5:/tests/actions.at diff --git a/tests/actions.at b/tests/actions.at index 5e897a2e..17d9193f 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -1301,7 +1301,16 @@ AT_BISON_OPTION_POPDEFS AT_BISON_CHECK([-o input.c input.y], 0,, [[input.y:33.3-23: warning: unset value: $$ -input.y:30.3-35.37: warning: unused value: $3 +input.y:32.3-23: warning: unused value: $3 +]]) + +AT_BISON_CHECK([-fcaret -o input.c input.y], 0,, +[[input.y:33.3-23: warning: unset value: $$ + { @$ = 4; } // Only used. + ^^^^^^^^^^^^^^^^^^^^^ +input.y:32.3-23: warning: unused value: $3 + { USE ($$); @$ = 3; } // Only set. + ^^^^^^^^^^^^^^^^^^^^^ ]]) AT_COMPILE([input])