X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/02354690ee02dfa05564137aafc6721eb54d21ab..cb3f7f335aa69ba3e6478fea8d4591f4f6d43bc5:/tests/input.at diff --git a/tests/input.at b/tests/input.at index 64a18093..6cfa2b12 100644 --- a/tests/input.at +++ b/tests/input.at @@ -1,5 +1,7 @@ # Checking the Bison scanner. -*- Autotest -*- -# Copyright (C) 2002-2010 Free Software Foundation, Inc. + +# 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 # it under the terms of the GNU General Public License as published by @@ -1287,3 +1289,26 @@ input.y:5.19: invalid character after \-escape: \001 ]]) AT_CLEANUP + +## ------------------------- ## +## LAC: Errors for %define. ## +## ------------------------- ## + +AT_SETUP([[LAC: Errors for %define]]) + +AT_DATA([[input.y]], +[[%% +start: ; +]]) + +# parse.lac.* options are useless if LAC isn't actually activated. +AT_BISON_CHECK([[-Dparse.lac.es-capacity-initial=1 input.y]], + [[1]], [], +[[:2: %define variable `parse.lac.es-capacity-initial' is not used +]]) +AT_BISON_CHECK([[-Dparse.lac.memory-trace=full input.y]], + [[1]], [], +[[:2: %define variable `parse.lac.memory-trace' is not used +]]) + +AT_CLEANUP