Refactor big test into smaller tests

This commit is contained in:
Ion Gaztañaga
2018-09-25 09:07:09 +02:00
parent f3e2c9cc73
commit 59f70078f0
12 changed files with 619 additions and 209 deletions
+31 -3
View File
@@ -19,10 +19,38 @@ struct empty
template class ::boost::container::map<empty, empty>;
template class ::boost::container::multimap<empty, empty>;
volatile ::boost::container::map<empty, empty> dummy;
volatile ::boost::container::multimap<empty, empty> dummy2;
#include <boost/container/allocator.hpp>
#include <boost/container/adaptive_pool.hpp>
#include "movable_int.hpp"
#include "dummy_test_allocator.hpp"
namespace boost {
namespace container {
typedef std::pair<const test::movable_and_copyable_int, test::movable_and_copyable_int> pair_t;
//Explicit instantiation to detect compilation errors
//map
template class map
< test::movable_and_copyable_int
, test::movable_and_copyable_int
, std::less<test::movable_and_copyable_int>
, test::simple_allocator< pair_t >
>;
template class map
< test::movable_and_copyable_int
, test::movable_and_copyable_int
, std::less<test::movable_and_copyable_int>
, adaptive_pool< pair_t >
>;
}} //boost::container
int main()
{
::boost::container::map<empty, empty> dummy;
::boost::container::multimap<empty, empty> dummy2;
(void)dummy; (void)dummy2;
return 0;
}