2010-05-11 21:42:16 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2010-05-11 23:36:01 +02:00
|
|
|
// The LLVM Compiler Infrastructure
|
2010-05-11 21:42:16 +02:00
|
|
|
//
|
2010-11-16 23:09:02 +01:00
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
2010-05-11 21:42:16 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <deque>
|
|
|
|
|
|
|
|
// deque()
|
|
|
|
|
|
|
|
#include <deque>
|
|
|
|
#include <cassert>
|
|
|
|
|
|
|
|
#include "../../../stack_allocator.h"
|
|
|
|
#include "../../../NotConstructible.h"
|
2013-06-23 23:17:24 +02:00
|
|
|
#include "../../../min_allocator.h"
|
2010-05-11 21:42:16 +02:00
|
|
|
|
|
|
|
template <class T, class Allocator>
|
|
|
|
void
|
|
|
|
test()
|
|
|
|
{
|
|
|
|
std::deque<T, Allocator> d;
|
|
|
|
assert(d.size() == 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
test<int, std::allocator<int> >();
|
|
|
|
test<NotConstructible, stack_allocator<NotConstructible, 1> >();
|
2013-06-23 23:17:24 +02:00
|
|
|
#if __cplusplus >= 201103L
|
|
|
|
test<int, min_allocator<int> >();
|
|
|
|
test<NotConstructible, min_allocator<NotConstructible> >();
|
|
|
|
#endif
|
2010-05-11 21:42:16 +02:00
|
|
|
}
|