X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/230a3db428622bb964807111b46812879b7ee726..a2b3f10183008612c4350e072d5611e0b6a8a462:/tests/cxx-type.at diff --git a/tests/cxx-type.at b/tests/cxx-type.at index e172033a..f5e7c559 100644 --- a/tests/cxx-type.at +++ b/tests/cxx-type.at @@ -122,12 +122,12 @@ declarator : ID #include #include #include +#include int main (int argc, char **argv) { - if (argc != 2) - abort (); + assert (argc == 2); if (!freopen (argv[1], "r", stdin)) return 3; return yyparse (); @@ -152,8 +152,7 @@ main (int argc, char **argv) while (1) { - if (feof (stdin)) - abort (); + assert (!feof (stdin)); c = getchar (); switch (c) { @@ -182,8 +181,7 @@ main (int argc, char **argv) { buffer[i++] = c; colNum += 1; - if (i == sizeof buffer - 1) - abort (); + assert (i != sizeof buffer - 1); c = getchar (); } while (isalnum (c) || c == '_');