X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/eff97eb54a1ff17da66f9d1c746eb009feeba889..d0f2b7f8566c186f34392efeedbab08c2ae72129:/tests/named-refs.at?ds=sidebyside diff --git a/tests/named-refs.at b/tests/named-refs.at index 62c46211..2490d2df 100644 --- a/tests/named-refs.at +++ b/tests/named-refs.at @@ -15,6 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# FIXME: Duplication with calc.at. AT_BANNER([[Named references tests.]]) AT_SETUP([Tutorial calculator]) @@ -142,8 +143,7 @@ int yylex (void) static int power (int base, int exponent) { int res = 1; - if (exponent < 0) - exit (3); + assert (0 <= exponent); for (/* Niente */; exponent; --exponent) res *= base; return res;