X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/22fccf958f542d321740f6718611912ca5fec985..1b9c21fb18c6d82f9b7512bc0f2f9d980a32c398:/tests/conflicts.at diff --git a/tests/conflicts.at b/tests/conflicts.at index 25885d5c..1cbf23ac 100644 --- a/tests/conflicts.at +++ b/tests/conflicts.at @@ -1,6 +1,6 @@ # Exercising Bison on conflicts. -*- Autotest -*- -# Copyright (C) 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,8 +14,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. AT_BANNER([[Conflicts.]]) @@ -55,17 +55,13 @@ AT_DATA_GRAMMAR([input.y], [[ %{ #include - -#if STDC_HEADERS -# include -#endif +#include #define YYERROR_VERBOSE 1 static void yyerror (const char *msg) { fprintf (stderr, "%s\n", msg); - exit (1); } /* The current argument. */ @@ -486,9 +482,9 @@ AT_DATA([input.y], exp: exp OP exp | NUM; ]]) -AT_CHECK([bison -o input.c input.y], 0, [], +AT_CHECK([bison -o input.c input.y], 1, [], [input.y: conflicts: 1 shift/reduce -input.y: warning: expected 0 shift/reduce conflicts +input.y: expected 0 shift/reduce conflicts ]) AT_CLEANUP @@ -523,9 +519,9 @@ AT_DATA([input.y], exp: exp OP exp | NUM; ]]) -AT_CHECK([bison -o input.c input.y], 0, [], +AT_CHECK([bison -o input.c input.y], 1, [], [input.y: conflicts: 1 shift/reduce -input.y: warning: expected 2 shift/reduce conflicts +input.y: expected 2 shift/reduce conflicts ]) AT_CLEANUP @@ -543,9 +539,9 @@ program: a 'a' | a a; a: 'a'; ]]) -AT_CHECK([bison -o input.c input.y], 0, [], +AT_CHECK([bison -o input.c input.y], 1, [], [input.y: conflicts: 1 reduce/reduce -input.y: warning: expected 0 reduce/reduce conflicts +input.y: expected 0 reduce/reduce conflicts ]) AT_CLEANUP