X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/4d7b57b52739d4405c6ad44b48c5047b4c32510a..e5655564583f2f704dd85d6f602f5fcd86f87467:/tests/input.at diff --git a/tests/input.at b/tests/input.at index be84f9cf..c65f63b5 100644 --- a/tests/input.at +++ b/tests/input.at @@ -1,6 +1,7 @@ # Checking the Bison scanner. -*- Autotest -*- -# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software -# Foundation, Inc. + +# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 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 @@ -702,6 +703,26 @@ AT_BISON_CHECK([input.y], [1], [], AT_CLEANUP +## ------------------------------- ## +## %prec's token must be defined. ## +## ------------------------------- ## + +AT_SETUP([[%prec's token must be defined]]) + +# According to POSIX, a %prec token must be defined separately. + +AT_DATA([[input.y]], +[[%% +start: %prec PREC ; +]]) + +AT_BISON_CHECK([[input.y]], [[0]], [], +[[input.y:2.8-17: warning: token for %prec is not defined: PREC +]]) + +AT_CLEANUP + + ## -------------------------------- ## ## Reject unused %code qualifiers. ## ## -------------------------------- ##