diff options
author | Brad King <brad.king@kitware.com> | 2017-07-12 12:57:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-07-12 12:58:36 (GMT) |
commit | 702083384143c762b6cfcf936f81cc26321a62fd (patch) | |
tree | 969317bfbfa86193335e26a3ab2c41dc7e4d82ef /Tests | |
parent | fadcfd4b89aa36cfd9842ef2798ca7dffabb0ade (diff) | |
parent | 3250b9a122a19a840f63868a244832c24528d54a (diff) | |
download | CMake-702083384143c762b6cfcf936f81cc26321a62fd.zip CMake-702083384143c762b6cfcf936f81cc26321a62fd.tar.gz CMake-702083384143c762b6cfcf936f81cc26321a62fd.tar.bz2 |
Merge topic 'bindexplib-revert-consts'
3250b9a1 bindexplib: Revert support for constants symbols
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1041
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/AutoExportDll/foo.c | 2 | ||||
-rw-r--r-- | Tests/RunCMake/AutoExportDll/say.cxx | 10 |
2 files changed, 0 insertions, 12 deletions
diff --git a/Tests/RunCMake/AutoExportDll/foo.c b/Tests/RunCMake/AutoExportDll/foo.c index e70fbb5..4b1318b 100644 --- a/Tests/RunCMake/AutoExportDll/foo.c +++ b/Tests/RunCMake/AutoExportDll/foo.c @@ -13,5 +13,3 @@ int bar() { return 5; } - -const char testconst[] = "testconst"; diff --git a/Tests/RunCMake/AutoExportDll/say.cxx b/Tests/RunCMake/AutoExportDll/say.cxx index eb9c0ff..51060e8 100644 --- a/Tests/RunCMake/AutoExportDll/say.cxx +++ b/Tests/RunCMake/AutoExportDll/say.cxx @@ -13,14 +13,6 @@ int WINAPI foo(); int bar(); int objlib(); void justnop(); - -// test const export -#ifdef _WIN32 -// data symbols must be explicitly imported -__declspec(dllimport) extern const char testconst[]; -#else -extern const char testconst[]; -#endif } // test c++ functions @@ -51,8 +43,6 @@ int main() bar(); objlib(); printf("\n"); - printf("%s", testconst); - printf("\n"); #ifdef HAS_JUSTNOP justnop(); #endif |