2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-03 19:00:51 +00:00

Add array test to PointerHolder

This commit is contained in:
Jay Berkenbilt 2022-02-04 09:13:04 -05:00
parent 8b67ac494e
commit f76191f0c2
2 changed files with 7 additions and 0 deletions

View File

@ -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;
}

View File

@ -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