diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-04 15:13:04 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-04 19:12:37 +0100 |
commit | f76191f0c217f48b5a935fa7170771fdfb66e2cb (patch) | |
tree | 8be894805ea3ef0f9c1b3c9c9d4c7d1f29916e93 | |
parent | 8b67ac494e57c74d8e762de9fc476133d7cc49db (diff) | |
download | qpdf-f76191f0c217f48b5a935fa7170771fdfb66e2cb.tar.zst |
Add array test to PointerHolder
-rw-r--r-- | libtests/pointer_holder.cc | 2 | ||||
-rw-r--r-- | libtests/qtest/ph/ph.out | 5 |
2 files changed, 7 insertions, 0 deletions
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<Object> 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 |