blob: 0132ce9fe12e7a4512f8d6a1fae7de3dbe17c9ea [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// <map>
// Check that std::multimap and its iterators can be instantiated with an incomplete
// type.
#include <map>
struct A {
typedef std::multimap<A, A> Map;
int data;
Map m;
Map::iterator it;
Map::const_iterator cit;
};
inline bool operator==(A const& L, A const& R) { return &L == &R; }
inline bool operator<(A const& L, A const& R) { return L.data < R.data; }
int main(int, char**) {
A a;
return 0;
}