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 | // UNSUPPORTED: c++03, c++11, c++14, c++17 |
9 | |
10 | // <forward_list> |
11 | |
12 | // template<class T, class Allocator> |
13 | // synth-three-way-result<T> operator<=>(const forward_list<T, Allocator>& x, |
14 | // const forward_list<T, Allocator>& y); |
15 | |
16 | #include <cassert> |
17 | #include <forward_list> |
18 | |
19 | #include "test_container_comparisons.h" |
20 | |
21 | int main(int, char**) { |
22 | assert(test_sequence_container_spaceship<std::forward_list>()); |
23 | // `std::forward_list` is not constexpr, so no `static_assert` test here. |
24 | return 0; |
25 | } |
26 | |