From 26f6e3f56d9741cc91cbe034a0e43d91e0fac6a3 Mon Sep 17 00:00:00 2001 From: Pawel Tomulik Date: Sun, 20 Sep 2015 17:09:34 +0200 Subject: fix test/LINK/VersionedLib.py to convince sun studio compiler --- test/LINK/VersionedLib.py | 17 ++++++++--------- 1 file 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() -- cgit v0.12