X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f0f95a50ee91374ac42b13f201aa42c2038fcada..f038e56cdc211396f54f138e95693d0906d6fafa:/tests/regression.at diff --git a/tests/regression.at b/tests/regression.at index 26df108f..374ac697 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -377,7 +377,10 @@ exp: ; %% ]]) -AT_BISON_CHECK([-v -o input.c input.y]) +AT_BISON_CHECK([-v -Wall -o input.c input.y], 0, [], +[[input.y:1.29-32: warning: useless precedence and associativity for "||" [-Wprecedence] +input.y:2.29-32: warning: useless precedence and associativity for "<=" [-Wprecedence] +]]) AT_CLEANUP @@ -837,7 +840,6 @@ m4_define([_AT_DATA_DANCER_Y], } $1 %token ARROW INVALID NUMBER STRING DATA -%defines %verbose %error-verbose /* Grammar follows */ @@ -922,7 +924,6 @@ AT_LALR1_CC_IF([[#include ]], ]AT_YYERROR_DECLARE])[ %} $1 -%defines %error-verbose %token A 1000 %token B @@ -1146,9 +1147,10 @@ sr_conflict: ]]) AT_BISON_OPTION_POPDEFS -AT_BISON_CHECK([[-o input.c input.y]], [[0]],, +AT_BISON_CHECK([[-Wall -o input.c input.y]], [[0]],, [[input.y:24.5-19: warning: rule useless in parser due to conflicts: start: start [-Wother] input.y:28.5-19: warning: rule useless in parser due to conflicts: sr_conflict: TK2 "tok alias" [-Wother] +input.y:18.7-9: warning: useless precedence and associativity for TK1 [-Wprecedence] ]]) AT_COMPILE([[input]]) AT_PARSER_CHECK([[./input]]) @@ -1541,14 +1543,13 @@ m4_pushdef([AT_TEST], AT_BISON_OPTION_PUSHDEFS([%locations %skeleton "$1" %parse-param { int x } %parse-param { int y }]) AT_DATA_GRAMMAR([input.y], -[[%defines -%locations +[[%locations %skeleton "$1" %union { int ival; } %parse-param { int x } // Spaces, tabs, and new lines. %parse-param { @&t@ - int y @&t@ +@tb@ int y@tb@ @&t@ @&t@ @&t@ } @@ -1576,7 +1577,7 @@ yyparse (int x, int y) int main (void) { - return !!yyparse(1, 2); + return yyparse(1, 2); } ]])