diff options
Diffstat (limited to 'cpp/test/Ice/gc/Client.cpp')
-rw-r--r-- | cpp/test/Ice/gc/Client.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/test/Ice/gc/Client.cpp b/cpp/test/Ice/gc/Client.cpp index edddb6b4bc2..d31cddc1975 100644 --- a/cpp/test/Ice/gc/Client.cpp +++ b/cpp/test/Ice/gc/Client.cpp @@ -589,6 +589,17 @@ MyApplication::run(int argc, char* argv[]) Ice::collectGarbage(); test(getNum() == 0); + { + NNPtr nn1 = new NN; + nn1->n = new NN; + test(getNum() == 2); + Ice::collectGarbage(); + test(getNum() == 2); + } + test(getNum() == 0); + Ice::collectGarbage(); + test(getNum() == 0); + cout << "ok" << endl; #if defined(_AIX) |