X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/378f4bd846c4312ddeb11f151382226e30050d3c..e4f0316ae096a728e62032fa33bc6c42cf4b6455:/tests/actions.at diff --git a/tests/actions.at b/tests/actions.at index 35df2319..7a03fb00 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -113,6 +113,7 @@ AT_DATA_GRAMMAR([[input.y]], exp: a_1 a_2 { $$ = 3; } { $$ = $3 + 1; } a_5 sum_of_the_five_previous_values { + USE (($1, $2, $3, $4, $5)); printf ("%d\n", $6); } ; @@ -146,11 +147,7 @@ main (void) } ]]) -AT_CHECK([bison -d -v -o input.c input.y], 0, [], -[input.y:30.6-34.5: warning: unused value: $1 -input.y:30.6-34.5: warning: unused value: $2 -input.y:30.6-34.5: warning: unused value: $5 -]) +AT_CHECK([bison -d -v -o input.c input.y], 0) AT_COMPILE([input]) AT_PARSER_CHECK([./input], 0, [[15