diff options
author | Pawel Tomulik <ptomulik@meil.pw.edu.pl> | 2015-09-20 15:09:34 (GMT) |
---|---|---|
committer | Pawel Tomulik <ptomulik@meil.pw.edu.pl> | 2015-09-20 15:09:34 (GMT) |
commit | 26f6e3f56d9741cc91cbe034a0e43d91e0fac6a3 (patch) | |
tree | ceca44c193c28679619123a565f4935e1d95cf2e /test/LINK/VersionedLib.py | |
parent | 123fea257474ede95fa6bef8fb403cc83eff5cdc (diff) | |
download | SCons-26f6e3f56d9741cc91cbe034a0e43d91e0fac6a3.zip SCons-26f6e3f56d9741cc91cbe034a0e43d91e0fac6a3.tar.gz SCons-26f6e3f56d9741cc91cbe034a0e43d91e0fac6a3.tar.bz2 |
fix test/LINK/VersionedLib.py to convince sun studio compiler
Diffstat (limited to 'test/LINK/VersionedLib.py')
-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()
|