X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c66dfaddf449920bea03c0aa3b55467e2f21c98e..fcab4a2ee278b32deb617ad291a087565862f661:/tests/cxx-type.at?ds=sidebyside diff --git a/tests/cxx-type.at b/tests/cxx-type.at index c22c44a8..26045728 100644 --- a/tests/cxx-type.at +++ b/tests/cxx-type.at @@ -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); } @@ -163,6 +163,8 @@ yylex (LEX_PARAMETERS) while (1) { + if (feof (stdin)) + abort (); c = getchar (); switch (c) {