28 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8// UNSUPPORTED: c++03, c++11, c++14, c++179 10// <list>11 12// template <class T, class Allocator> constexpr13// synth-three-way-result<T>14// operator<=>(const list<T, Allocator>& x, const list<T, Allocator>& y); // constexpr since C++2615 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#if TEST_STD_VER >= 2624 static_assert(test_sequence_container_spaceship<std::list>());25#endif26 return 0;27}28