//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // explicit list(const Alloc& = Alloc()); #include #include #include "test_allocator.h" #include "min_allocator.h" int main() { { std::list l; assert(l.size() == 0); assert(std::distance(l.begin(), l.end()) == 0); } { std::list l((std::allocator())); assert(l.size() == 0); assert(std::distance(l.begin(), l.end()) == 0); } { std::list > l; assert(l.size() == 0); assert(std::distance(l.begin(), l.end()) == 0); } #if TEST_STD_VER >= 11 { std::list> l; assert(l.size() == 0); assert(std::distance(l.begin(), l.end()) == 0); } { std::list> l((min_allocator())); assert(l.size() == 0); assert(std::distance(l.begin(), l.end()) == 0); } #endif }