mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
tests: generalize the compilation macros.
* tests/local.at (AT_COMPILE, AT_COMPILE_CXX): If OUTPUT ends with ".o", then append the "natural" extension for the input file (.c or .cc). If there is no source, pass -c. * tests/headers.at, tests/input.at, tests/regression.at: Adjust.
This commit is contained in:
@@ -111,8 +111,8 @@ main (void)
|
||||
|
||||
# Link and execute, just to make sure everything is fine (and in
|
||||
# particular, that MY_LLOC is indeed defined somewhere).
|
||||
AT_COMPILE([caller.o], [-c caller.c])
|
||||
AT_COMPILE([input.o], [-c input.c])
|
||||
AT_COMPILE([caller.o])
|
||||
AT_COMPILE([input.o])
|
||||
AT_COMPILE([caller], [caller.o input.o])
|
||||
AT_PARSER_CHECK([./caller])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user