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 // UNSUPPORTED: c++03, c++11, c++14, c++17
10 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
11
12 // <queue>
13
14 // template<class T, three_way_comparable Container>
15 // compare_three_way_result_t<Container>
16 // operator<=>(const queue<T, Container>& x, const queue<T, Container>& y);
17
18 #include <cassert>
19 #include <deque>
20 #include <queue>
21 #include <list>
22
23 #include "nasty_containers.h"
24 #include "test_container_comparisons.h"
25
main(int,char **)26 int main(int, char**) {
27 assert((test_sequence_container_adaptor_spaceship<std::queue, std::deque>()));
28 assert((test_sequence_container_adaptor_spaceship<std::queue, std::list>()));
29 assert((test_sequence_container_adaptor_spaceship<std::queue, nasty_list>()));
30 // `std::queue` is not constexpr, so no `static_assert` test here.
31 return 0;
32 }
33