allocator_test.cpp:

function_test.cpp:
  - Test out the new function syntax


[SVN r14532]
This commit is contained in:
Douglas Gregor
2002-07-19 18:31:41 +00:00
parent 9e49833a8c
commit fff815d58b
2 changed files with 32 additions and 0 deletions

View File

@ -84,5 +84,14 @@ test_main(int, char*[])
fv = &do_nothing;
fv.clear();
function<int (int, int), empty_function_policy, empty_function_mixin,
counting_allocator<int> > f2;
alloc_count = 0;
dealloc_count = 0;
f2 = plus<int>();
f2.clear();
BOOST_TEST(alloc_count == 1);
BOOST_TEST(dealloc_count == 1);
return 0;
}