X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6e30ede87a1c39c53842a6a747ecd9f7484d92a5..72cd9a913f6d282c5e24990505c2c820bda2bf1b:/tests/torture.at?ds=sidebyside diff --git a/tests/torture.at b/tests/torture.at index 68050bea..253041e6 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -1,7 +1,7 @@ # Torturing Bison. -*- Autotest -*- -# Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2009, 2010 Free -# Software Foundation, Inc. +# Copyright (C) 2001-2002, 2004-2007, 2009-2012 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 @@ -89,9 +89,9 @@ for my $size (1 .. $max) { use Text::Wrap; print wrap ("| ", " ", - (map { "\"$_\"" } (1 .. $size)), - " END \n"), - " { \$\$ = $size; }\n"; + (map { "\"$_\"" } (1 .. $size)), + " END \n"), + " { \$\$ = $size; }\n"; }; print ";\n"; @@ -190,7 +190,7 @@ EOF use Text::Wrap; print wrap ("exp: ", " ", - (map { "\"$_\"" } (1 .. $max)), ";"), + (map { "\"$_\"" } (1 .. $max)), ";"), "\n"; print < ", - " ", - map { "n$_" } (1 .. $max)), + " ", + map { "n$_" } (1 .. $max)), "\n"; print "%token\n"; @@ -334,7 +334,7 @@ yylex (void) if (counter > $max) { if (counter++ != $max + 1) - abort (); + abort (); return 0; } if (return_token) @@ -435,8 +435,8 @@ main (int argc, const char **argv) abort (); yylval_init = strtol (argv[1], &endp, 10); if (! (argv[1] != endp - && 0 <= yylval_init && yylval_init <= INT_MAX - && errno != ERANGE)) + && 0 <= yylval_init && yylval_init <= INT_MAX + && errno != ERANGE)) abort (); yydebug = 1; {