forked from boostorg/function
allocator_test.cpp:
function_test.cpp: - Test out the new function syntax [SVN r14532]
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user