(_AT_TEST_GLR_CXXTYPES): Do not include <assert.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Nov 2002 05:28:44 +0000 (05:28 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Nov 2002 05:28:44 +0000 (05:28 +0000)
Replace all instances of assert with abort.

tests/cxx-type.at

index 5ad9cf4..41ff560 100644 (file)
@@ -91,7 +91,6 @@ declarator : ID               { printf ("\"%s\" ", ]$[1); }
 
 %%
 
-#include <assert.h>
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
@@ -99,7 +98,8 @@ declarator : ID               { printf ("\"%s\" ", ]$[1); }
 int
 main (int argc, char** argv)
 {
-  assert (argc == 2);
+  if (argc != 2)
+    abort ();
   if (!freopen (argv[1], "r", stdin))
     abort ();
   exit (yyparse ());