summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobert Managan <ramanagan@att.net>2013-06-17 15:00:33 (GMT)
committerRobert Managan <ramanagan@att.net>2013-06-17 15:00:33 (GMT)
commitcd6781b13ad9e019257569c8d18c392347c912fd (patch)
treee4dc54f8f8fc5f4a440fca996954de8d2a2de301 /test
parent64277cb37bfe6430a4b13bf78c42678e795210aa (diff)
downloadSCons-cd6781b13ad9e019257569c8d18c392347c912fd.zip
SCons-cd6781b13ad9e019257569c8d18c392347c912fd.tar.gz
SCons-cd6781b13ad9e019257569c8d18c392347c912fd.tar.bz2
Add a test to show that we can build when the link already exist
Diffstat (limited to 'test')
-rw-r--r--test/LINK/VersionedLib.py13
1 files changed, 13 insertions, 0 deletions
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: