Commit f76191f0c217f48b5a935fa7170771fdfb66e2cb

Authored by Jay Berkenbilt
1 parent 8b67ac49

Add array test to PointerHolder

libtests/pointer_holder.cc
... ... @@ -96,6 +96,8 @@ int main(int argc, char* argv[])
96 96 (*ol1.front()).hello();
97 97 callHello(ol1.front());
98 98 ol1.pop_front();
  99 + std::cout << "array" << std::endl;
  100 + PointerHolder<Object> oarr1_ph(true, new Object[2]);
99 101 std::cout << "goodbye" << std::endl;
100 102 return 0;
101 103 }
... ...
libtests/qtest/ph/ph.out
... ... @@ -16,6 +16,11 @@ calling Object::hello for 1
16 16 calling Object::hello const for 1
17 17 calling Object::hello const for 1
18 18 calling Object::hello const for 1
  19 +array
  20 +created Object, id 4
  21 +created Object, id 5
19 22 goodbye
  23 +destroyed Object, id 5
  24 +destroyed Object, id 4
20 25 destroyed Object, id 3
21 26 destroyed Object, id 1
... ...