diff --git a/libtests/pointer_holder.cc b/libtests/pointer_holder.cc index 05ab4cf..469bfc2 100644 --- a/libtests/pointer_holder.cc +++ b/libtests/pointer_holder.cc @@ -96,6 +96,8 @@ int main(int argc, char* argv[]) (*ol1.front()).hello(); callHello(ol1.front()); ol1.pop_front(); + std::cout << "array" << std::endl; + PointerHolder oarr1_ph(true, new Object[2]); std::cout << "goodbye" << std::endl; return 0; } diff --git a/libtests/qtest/ph/ph.out b/libtests/qtest/ph/ph.out index 2f82bd8..5d24971 100644 --- a/libtests/qtest/ph/ph.out +++ b/libtests/qtest/ph/ph.out @@ -16,6 +16,11 @@ calling Object::hello for 1 calling Object::hello const for 1 calling Object::hello const for 1 calling Object::hello const for 1 +array +created Object, id 4 +created Object, id 5 goodbye +destroyed Object, id 5 +destroyed Object, id 4 destroyed Object, id 3 destroyed Object, id 1