summaryrefslogtreecommitdiff
path: root/test/LINK
diff options
context:
space:
mode:
authorRobert Managan <ramanagan@att.net>2013-06-17 08:00:33 -0700
committerRobert Managan <ramanagan@att.net>2013-06-17 08:00:33 -0700
commita06a908bcc6970aae21c978e461ecec88772ddab (patch)
treed9c5efa3a39901ca8332ef4744ad5c8f83c94a3c /test/LINK
parent1603d85cb9d177b8d9c895d1a05bbafd6c7755a2 (diff)
downloadscons-a06a908bcc6970aae21c978e461ecec88772ddab.tar.gz
Add a test to show that we can build when the link already exist
Diffstat (limited to 'test/LINK')
-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 0d457894..df194d84 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: