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

source code of libcxx/test/std/containers/sequences/list/compare.three_way.pass.cpp