diff options
author | Pawel Tomulik <ptomulik@meil.pw.edu.pl> | 2015-09-20 17:09:34 +0200 |
---|---|---|
committer | Pawel Tomulik <ptomulik@meil.pw.edu.pl> | 2015-09-20 17:09:34 +0200 |
commit | ae00f2163afd2039fe096fac5bfe8773537a0679 (patch) | |
tree | ceca44c193c28679619123a565f4935e1d95cf2e /test/LINK | |
parent | 379c84bab55b0231e19496dd8eac3eaf6ca72175 (diff) | |
download | scons-ae00f2163afd2039fe096fac5bfe8773537a0679.tar.gz |
fix test/LINK/VersionedLib.py to convince sun studio compiler
Diffstat (limited to 'test/LINK')
-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 2e38deeb..0d74a35f 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()
|