From cd6781b13ad9e019257569c8d18c392347c912fd Mon Sep 17 00:00:00 2001 From: Robert Managan Date: Mon, 17 Jun 2013 08:00:33 -0700 Subject: Add a test to show that we can build when the link already exist --- test/LINK/VersionedLib.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/LINK/VersionedLib.py b/test/LINK/VersionedLib.py index 0d45789..df194d8 100644 --- a/test/LINK/VersionedLib.py +++ b/test/LINK/VersionedLib.py @@ -123,6 +123,19 @@ for f in files: for f in instfiles: test.must_exist(['installtest', f]) +# modify test.c and make sure it can recompile when links already exist +test.write('test.c', """\ +#if _WIN32 +__declspec(dllexport) +#endif +int testlib(int n) +{ +return n+11 ; +} +""") + +print test.run() + test.run(arguments = '-c') for f in files: -- cgit v0.12