diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-22 21:23:48 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-22 21:23:48 +0000 |
commit | a5074c07a75bc7b6debd20fbc886103831d489dd (patch) | |
tree | 2eb80e71dcc528a86d481880b6d42702fb3cbeb4 /cpp/test/Ice/objects/TestI.cpp | |
parent | fixes (diff) | |
download | ice-a5074c07a75bc7b6debd20fbc886103831d489dd.tar.bz2 ice-a5074c07a75bc7b6debd20fbc886103831d489dd.tar.xz ice-a5074c07a75bc7b6debd20fbc886103831d489dd.zip |
more objects demo stuff
Diffstat (limited to 'cpp/test/Ice/objects/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/objects/TestI.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/test/Ice/objects/TestI.cpp b/cpp/test/Ice/objects/TestI.cpp index b4170877378..267e389be21 100644 --- a/cpp/test/Ice/objects/TestI.cpp +++ b/cpp/test/Ice/objects/TestI.cpp @@ -18,6 +18,19 @@ InitialI::InitialI(const Ice::ObjectAdapterPtr& adapter) : _c(new C), _d(new D) { + _b1->a = _b2; // Cyclic reference to another B + _b1->b = _b1; // Self reference. + _b1->c = 0; // Null reference. + + _b2->a = _b2; // Self reference, using base. + _b2->b = _b1; // Cyclic reference to another B + _b2->c = _c; // Cyclic reference to a C. + + _c->b = _b2; // Cyclic reference to a B. + + _d->a = _b1; // Reference to a B. + _d->b = _b2; // Reference to a B. + _d->c = 0; // Reference to a C. } void |