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