diff options
author | Marc Laukien <marc@zeroc.com> | 2005-03-08 13:24:53 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2005-03-08 13:24:53 +0000 |
commit | fe608f38f43dd4f90b962087d6b18852f1994c60 (patch) | |
tree | 82e32c9832cc0974ed1a8ab1c06759334a7ba98b /cpp/test/IceUtil/thread/GCSharedTest.cpp | |
parent | fixing location of README.html (diff) | |
download | ice-fe608f38f43dd4f90b962087d6b18852f1994c60.tar.bz2 ice-fe608f38f43dd4f90b962087d6b18852f1994c60.tar.xz ice-fe608f38f43dd4f90b962087d6b18852f1994c60.zip |
removed inheritance GCShared->Shared
Diffstat (limited to 'cpp/test/IceUtil/thread/GCSharedTest.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/GCSharedTest.cpp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/cpp/test/IceUtil/thread/GCSharedTest.cpp b/cpp/test/IceUtil/thread/GCSharedTest.cpp deleted file mode 100644 index c1d11bc7dd5..00000000000 --- a/cpp/test/IceUtil/thread/GCSharedTest.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2005 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 <IceUtil/IceUtil.h> - -#include <GCSharedTest.h> -#include <IceUtil/Thread.h> -#include <IceUtil/GCShared.h> -#include <TestCommon.h> - -using namespace std; -using namespace IceUtil; - -static const string GCSharedTestName("GCShared"); - -struct TestClass : public Thread, GCShared -{ - virtual void run() {} - virtual void __gcReachable(GCObjectMultiSet&) const {} - virtual void __gcClear() {} - - bool basesAreVirtual() - { - GCShared::_noDelete = false; - Thread::_noDelete = true; - // - // If we have virtual bases, there will be only one instance of the IceUtil::Shared base class, - // so GCShared::_noDelete will be true after the second assignment. - // - return GCShared::_noDelete; - } -}; - -GCSharedTest::GCSharedTest() : - TestBase(GCSharedTestName) -{ -} - -void -GCSharedTest::run() -{ - TestClass tc; - test(tc.basesAreVirtual()); -} |