[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / containers / sequences / deque / deque.cons / default.pass.cpp
blobb7c2ef1e9c13f1edfafc6c9cefa76bd8ecb4e756
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 //===----------------------------------------------------------------------===//
9 // <deque>
11 // deque()
13 #include <deque>
14 #include <cassert>
16 #include "test_macros.h"
17 #include "test_allocator.h"
18 #include "../../../NotConstructible.h"
19 #include "min_allocator.h"
21 template <class T, class Allocator>
22 void
23 test()
25 std::deque<T, Allocator> d;
26 assert(d.size() == 0);
27 #if TEST_STD_VER >= 11
28 std::deque<T, Allocator> d1 = {};
29 assert(d1.size() == 0);
30 #endif
33 int main(int, char**)
35 test<int, std::allocator<int> >();
36 test<NotConstructible, limited_allocator<NotConstructible, 1> >();
37 #if TEST_STD_VER >= 11
38 test<int, min_allocator<int> >();
39 test<NotConstructible, min_allocator<NotConstructible> >();
40 #endif
42 return 0;