summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/thread/GCSharedTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceUtil/thread/GCSharedTest.cpp')
-rw-r--r--cpp/test/IceUtil/thread/GCSharedTest.cpp50
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());
-}