Say "bison -o foo.c foo.y", not "bison foo.y -o foo.c",

so that the commands still work even if POSIXLY_CORRECT is set.
This commit is contained in:
Paul Eggert
2002-10-14 08:43:36 +00:00
parent 1318e37d58
commit b56471a689
10 changed files with 30 additions and 30 deletions

View File

@@ -50,7 +50,7 @@ exp: MY_TOKEN;
%%
]])
AT_CHECK([bison input.y -o input.c])
AT_CHECK([bison -o input.c input.y])
AT_COMPILE([input.o], [-c input.c])
AT_CLEANUP
@@ -72,7 +72,7 @@ exp: { tests = {{{{{{{{{{}}}}}}}}}}; };
%%
]])
AT_CHECK([bison -v input.y -o input.c])
AT_CHECK([bison -v -o input.c input.y])
AT_CHECK([grep 'tests = {{{{{{{{{{}}}}}}}}}};' input.c], 0, [ignore])
@@ -99,7 +99,7 @@ exp: '(' exp ')' | NUM ;
%%
]])
AT_CHECK([bison -v input.y -o input.c], 0, [],
AT_CHECK([bison -v -o input.c input.y], 0, [],
[[input.y:6.8-14: warning: symbol `"<="' used more than once as a literal string
]])
@@ -144,7 +144,7 @@ expr:
};
]])
AT_CHECK([bison input.y -o input.c -v])
AT_CHECK([bison -o input.c -v input.y])
# Check the contents of the report.
AT_CHECK([cat input.output], [],
@@ -266,7 +266,7 @@ exp: ;
%%
]])
AT_CHECK([bison -v input.y -o input.c])
AT_CHECK([bison -v -o input.c input.y])
AT_CLEANUP
@@ -327,7 +327,7 @@ int yylex (void);
exp: "a";
]])
AT_CHECK([bison input.y -o input.c])
AT_CHECK([bison -o input.c input.y])
AT_COMPILE([input.o], [-c input.c])
AT_CLEANUP
@@ -353,7 +353,7 @@ exp:
;
]])
AT_CHECK([bison input.y -o input.c])
AT_CHECK([bison -o input.c input.y])
AT_COMPILE([input.o], [-c input.c])
AT_CLEANUP
@@ -558,7 +558,7 @@ else: "else" statement;
%%
]])
AT_CHECK([bison -v input.y -o input.c])
AT_CHECK([bison -v -o input.c input.y])
# Check only the tables. We don't use --no-parser, because it is
# still to be implemented in the experimental branch of Bison.