diff options
-rw-r--r-- | test/LINK/VersionedLib.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/test/LINK/VersionedLib.py b/test/LINK/VersionedLib.py index 2e38dee..0d74a35 100644 --- a/test/LINK/VersionedLib.py +++ b/test/LINK/VersionedLib.py @@ -192,6 +192,13 @@ __declspec(dllexport) int testlib(int n) { return n+1 ; }
"""
+test_c_src2 = """\
+#if _WIN32
+__declspec(dllexport)
+#endif
+int testlib(int n) { return n+11 ; }
+"""
+
testapp_c_src = """\
#if _WIN32
__declspec(dllimport)
@@ -255,15 +262,7 @@ env.Default(instnode) test.fail_test(wrong_symlinks)
# 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 ;
- }
- """)
+ test.write('test.c', test_c_src2)
test.run()
|