1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
11 // template <class T, class Container>
12 // bool operator==(const queue<T, Container>& x,const queue<T, Container>& y);
14 // template <class T, class Container>
15 // bool operator!=(const queue<T, Container>& x,const queue<T, Container>& y);
20 #include "test_macros.h"
27 for (int i
= 0; i
< n
; ++i
)
34 std::queue
<int> q1
= make
<std::queue
<int> >(5);
35 std::queue
<int> q2
= make
<std::queue
<int> >(10);
36 std::queue
<int> q1_save
= q1
;
37 std::queue
<int> q2_save
= q2
;
38 assert(q1
== q1_save
);
40 assert(q2
== q2_save
);