Fix tests for when the library has support for initializer lists but the compiler doesn't.

[SVN r53525]
This commit is contained in:
Daniel James
2009-06-01 06:50:37 +00:00
parent cec1891586
commit 78ea3024b5
2 changed files with 26 additions and 0 deletions

View File

@@ -290,6 +290,17 @@ UNORDERED_TEST(map_constructor_test,
#if !defined(BOOST_NO_0X_HDR_INITIALIZER_LIST)
UNORDERED_AUTO_TEST(test_default_initializer_list) {
std::cerr<<"Initializer List Tests\n";
std::initializer_list<int> init;
boost::unordered_set<int> x1 = init;
BOOST_TEST(x1.empty());
}
#endif
#if !defined(BOOST_NO_INITIALIZER_LISTS)
UNORDERED_AUTO_TEST(test_initializer_list) {
std::cerr<<"Initializer List Tests\n";
boost::unordered_set<int> x1 = { 2, 10, 45, -5 };