1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // XFAIL: c++03, c++11
11 
12 // <map>
13 
14 // class map
15 
16 //       iterator find(const key_type& k);
17 // const_iterator find(const key_type& k) const;
18 //
19 //   The member function templates find, count, lower_bound, upper_bound, and
20 // equal_range shall not participate in overload resolution unless the
21 // qualified-id Compare::is_transparent is valid and denotes a type
22 
23 
24 #include <map>
25 #include <cassert>
26 
27 #include "is_transparent.h"
28 
main()29 int main()
30 {
31     typedef std::map<int, double, transparent_less> M;
32 
33     M().find(C2Int{5});
34 }
35