forked from boostorg/container
Refactor big test into smaller tests
This commit is contained in:
@@ -17,10 +17,40 @@ struct empty
|
||||
};
|
||||
|
||||
template class ::boost::container::small_vector<empty, 2>;
|
||||
volatile ::boost::container::small_vector<empty, 2> dummy;
|
||||
|
||||
#include <boost/container/allocator.hpp>
|
||||
#include "movable_int.hpp"
|
||||
#include "dummy_test_allocator.hpp"
|
||||
|
||||
namespace boost {
|
||||
namespace container {
|
||||
|
||||
template class small_vector<char, 0>;
|
||||
template class small_vector<char, 1>;
|
||||
template class small_vector<char, 2>;
|
||||
template class small_vector<char, 10>;
|
||||
|
||||
template class small_vector<int, 0>;
|
||||
template class small_vector<int, 1>;
|
||||
template class small_vector<int, 2>;
|
||||
template class small_vector<int, 10>;
|
||||
|
||||
//Explicit instantiation to detect compilation errors
|
||||
template class boost::container::small_vector
|
||||
< test::movable_and_copyable_int
|
||||
, 10
|
||||
, test::simple_allocator<test::movable_and_copyable_int> >;
|
||||
|
||||
template class boost::container::small_vector
|
||||
< test::movable_and_copyable_int
|
||||
, 10
|
||||
, allocator<test::movable_and_copyable_int> >;
|
||||
|
||||
}}
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
::boost::container::small_vector<empty, 2> dummy;
|
||||
(void)dummy;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user