X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/39a06c251ad9c523b1172835e545d2043431873d..f85a5e6f4b9867cf91ec6c93bdbbb8a3b4ba8e11:/tests/conflicts.at diff --git a/tests/conflicts.at b/tests/conflicts.at index 259827bd..381b49ef 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 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 @@ -55,10 +55,7 @@ AT_DATA_GRAMMAR([input.y], [[ %{ #include - -#if STDC_HEADERS -# include -#endif +#include #define YYERROR_VERBOSE 1 static void @@ -550,11 +547,11 @@ input.y: warning: expected 0 reduce/reduce conflicts AT_CLEANUP -## ---------------------------- ## -## %default-prec without %prec ## -## ---------------------------- ## +## ------------------------------- ## +## %no-default-prec without %prec ## +## ------------------------------- ## -AT_SETUP([%default-prec without %prec]) +AT_SETUP([%no-default-prec without %prec]) AT_DATA([[input.y]], [[%left '+' @@ -562,7 +559,7 @@ AT_DATA([[input.y]], %% -%default-prec 0; +%no-default-prec; e: e '+' e | e '*' e @@ -576,11 +573,11 @@ AT_CHECK([bison -o input.c input.y], 0, [], AT_CLEANUP -## ------------------------- ## -## %default-prec with %prec ## -## ------------------------- ## +## ---------------------------- ## +## %no-default-prec with %prec ## +## ---------------------------- ## -AT_SETUP([%default-prec with %prec]) +AT_SETUP([%no-default-prec with %prec]) AT_DATA([[input.y]], [[%left '+' @@ -588,7 +585,7 @@ AT_DATA([[input.y]], %% -%default-prec 0; +%no-default-prec; e: e '+' e %prec '+' | e '*' e %prec '*' @@ -601,10 +598,10 @@ AT_CLEANUP ## ---------------- ## -## %default-prec 1 ## +## %default-prec ## ## ---------------- ## -AT_SETUP([%default-prec 1]) +AT_SETUP([%default-prec]) AT_DATA([[input.y]], [[%left '+' @@ -612,7 +609,7 @@ AT_DATA([[input.y]], %% -%default-prec 1; +%default-prec; e: e '+' e | e '*' e