Check Dispose is called in C# auto_ptr test
This commit is contained in:
parent
bf9065395a
commit
a8055b45d7
1 changed files with 7 additions and 0 deletions
|
|
@ -19,6 +19,13 @@ public class li_std_auto_ptr_runme {
|
|||
if (Klass.getTotal_count() != 2)
|
||||
throw new Exception("number of objects should be 2");
|
||||
|
||||
using (Klass k3 = li_std_auto_ptr.makeKlassAutoPtr("second")) {
|
||||
if (Klass.getTotal_count() != 3)
|
||||
throw new Exception("number of objects should be 3");
|
||||
}
|
||||
if (Klass.getTotal_count() != 2)
|
||||
throw new Exception("number of objects should be 2");
|
||||
|
||||
k1 = null;
|
||||
{
|
||||
int countdown = 500;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue