1*4684ddb6SLionel Sambuc //===----------------------------------------------------------------------===//
2*4684ddb6SLionel Sambuc //
3*4684ddb6SLionel Sambuc // The LLVM Compiler Infrastructure
4*4684ddb6SLionel Sambuc //
5*4684ddb6SLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open
6*4684ddb6SLionel Sambuc // Source Licenses. See LICENSE.TXT for details.
7*4684ddb6SLionel Sambuc //
8*4684ddb6SLionel Sambuc //===----------------------------------------------------------------------===//
9*4684ddb6SLionel Sambuc
10*4684ddb6SLionel Sambuc // <map>
11*4684ddb6SLionel Sambuc
12*4684ddb6SLionel Sambuc // template <class Key, class T, class Compare = less<Key>,
13*4684ddb6SLionel Sambuc // class Allocator = allocator<pair<const Key, T>>>
14*4684ddb6SLionel Sambuc // class map
15*4684ddb6SLionel Sambuc
16*4684ddb6SLionel Sambuc // http://llvm.org/bugs/show_bug.cgi?id=16538
17*4684ddb6SLionel Sambuc // http://llvm.org/bugs/show_bug.cgi?id=16549
18*4684ddb6SLionel Sambuc
19*4684ddb6SLionel Sambuc #include <map>
20*4684ddb6SLionel Sambuc
21*4684ddb6SLionel Sambuc struct Key {
KeyKey22*4684ddb6SLionel Sambuc template <typename T> Key(const T&) {}
operator <Key23*4684ddb6SLionel Sambuc bool operator< (const Key&) const { return false; }
24*4684ddb6SLionel Sambuc };
25*4684ddb6SLionel Sambuc
26*4684ddb6SLionel Sambuc int
main()27*4684ddb6SLionel Sambuc main()
28*4684ddb6SLionel Sambuc {
29*4684ddb6SLionel Sambuc std::map<Key, int>::iterator it = std::map<Key, int>().find(Key(0));
30*4684ddb6SLionel Sambuc std::pair<std::map<Key, int>::iterator, bool> result =
31*4684ddb6SLionel Sambuc std::map<Key, int>().insert(std::make_pair(Key(0), 0));
32*4684ddb6SLionel Sambuc }
33