X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9ecafbbfe7a17aa3c2a5f370ffd2ef0616576fc1..b36e835baaac5e9dce17ae90d85575a58a1ef829:/tests/cxx-type.at diff --git a/tests/cxx-type.at b/tests/cxx-type.at index fbe9bd1b..26045728 100644 --- a/tests/cxx-type.at +++ b/tests/cxx-type.at @@ -1,5 +1,5 @@ # Checking GLR Parsing. -*- Autotest -*- -# Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2004, 2005, 2006 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 @@ -98,7 +98,7 @@ prog : @2.first_line, @2.first_column, @2.last_line, @2.last_column);])[ output = node_to_string (]$[2); - printf ("%s\n", output); + printf ("%s\n", output); free (output); free_node (]$[2); } @@ -155,12 +155,16 @@ yylex (LEX_PARAMETERS) static int colNum = 0; #if YYPURE +# undef yylloc # define yylloc (*llocp) +# undef yylval # define yylval (*lvalp) #endif while (1) { + if (feof (stdin)) + abort (); c = getchar (); switch (c) {