From f76191f0c217f48b5a935fa7170771fdfb66e2cb Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 4 Feb 2022 09:13:04 -0500 Subject: Add array test to PointerHolder --- libtests/pointer_holder.cc | 2 ++ libtests/qtest/ph/ph.out | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'libtests') diff --git a/libtests/pointer_holder.cc b/libtests/pointer_holder.cc index 05ab4cfa..469bfc21 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 2f82bd8b..5d249712 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 -- cgit v1.2.3-70-g09d2