X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c6abeab182fed54a2068fd75978a97f9c09d9da7..7d424de14c0385012d328642bec6874c8e6cef17:/tests/input.at diff --git a/tests/input.at b/tests/input.at index ab01cbe8..241c4d06 100644 --- a/tests/input.at +++ b/tests/input.at @@ -1,5 +1,6 @@ # Checking the Bison scanner. -*- Autotest -*- -# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + +# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify @@ -794,6 +795,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. ## ## -------------------------------- ##