int
main (int argc, char** argv)
{
- assert (argc = 2);
- assert (freopen (argv[1], "r", stdin));
+ assert (argc == 2);
+ if (!freopen (argv[1], "r", stdin))
+ abort ();
exit (yyparse ());
}
This is total garbage, but it should be ignored.
]])
-AT_CHECK([bison types.y -o types.c], 0, [], ignore)
+AT_CHECK([bison -o types.c types.y], 0, [], ignore)
AT_COMPILE([types])
])