1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // <deque>
10 
11 // deque()
12 
13 #include <deque>
14 #include <cassert>
15 
16 #include "test_allocator.h"
17 #include "../../../NotConstructible.h"
18 #include "min_allocator.h"
19 
20 template <class T, class Allocator>
21 void
22 test()
23 {
24     std::deque<T, Allocator> d;
25     assert(d.size() == 0);
26 #if TEST_STD_VER >= 11
27     std::deque<T, Allocator> d1 = {};
28     assert(d1.size() == 0);
29 #endif
30 }
31 
32 int main(int, char**)
33 {
34     test<int, std::allocator<int> >();
35     test<NotConstructible, limited_allocator<NotConstructible, 1> >();
36 #if TEST_STD_VER >= 11
37     test<int, min_allocator<int> >();
38     test<NotConstructible, min_allocator<NotConstructible> >();
39 #endif
40 
41   return 0;
42 }
43