diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-08-25 12:15:27 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-08-25 12:15:27 -0400 |
commit | b0bc915ba0df62edb6d63eb40b41d4dba2968b3a (patch) | |
tree | 90b344339957a7dddecf9548ed80d8d930530936 /cpp/test/Ice/library/Client.cpp | |
parent | Fix ICE-7298 - Visual Studio 2013 build error (diff) | |
download | ice-b0bc915ba0df62edb6d63eb40b41d4dba2968b3a.tar.bz2 ice-b0bc915ba0df62edb6d63eb40b41d4dba2968b3a.tar.xz ice-b0bc915ba0df62edb6d63eb40b41d4dba2968b3a.zip |
New test for dynamic_cast across shared libraries
Diffstat (limited to 'cpp/test/Ice/library/Client.cpp')
-rw-r--r-- | cpp/test/Ice/library/Client.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/cpp/test/Ice/library/Client.cpp b/cpp/test/Ice/library/Client.cpp new file mode 100644 index 00000000000..bc8371e95a2 --- /dev/null +++ b/cpp/test/Ice/library/Client.cpp @@ -0,0 +1,43 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <TestCommon.h> + +ICE_DECLSPEC_IMPORT void +allTests(const Ice::ObjectAdapterPtr&); + +#if defined(_MSC_VER) +# pragma comment(lib, ICE_LIBNAME("alltests")) +#endif + +DEFINE_TEST("client") + +using namespace std; + +int +main(int argc, char* argv[]) +{ + try + { + Ice::CommunicatorHolder ich = Ice::initialize(argc, argv); + + // Collocated-only OA + Ice::ObjectAdapterPtr oa = ich->createObjectAdapter(""); + + oa->activate(); + allTests(oa); + } + catch(const Ice::Exception& ex) + { + cerr << ex << endl; + return EXIT_FAILURE; + } + return EXIT_SUCCESS; +} |