[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / containers / container.adaptors / queue / queue.defn / assign_copy.pass.cpp
blob8e1f82f1b05f0615f00d3637c0e71a71a4f902be
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 // <queue>
11 // queue& operator=(const queue& q);
13 #include <queue>
14 #include <cassert>
16 #include "test_macros.h"
18 template <class C>
20 make(int n)
22 C c;
23 for (int i = 0; i < n; ++i)
24 c.push_back(i);
25 return c;
28 int main(int, char**)
30 std::queue<int> q(make<std::deque<int> >(5));
31 std::queue<int> q2;
32 q2 = q;
33 assert(q2 == q);
35 return 0;