1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03
11 // The test requires access control SFINAE.
15 // Check that std::unordered_multimap fails to instantiate if the comparison predicate is
16 // not copy-constructible. This is LWG issue 2436
18 #include <unordered_map>
22 bool operator () (const T& lhs, const T& rhs) const { return lhs == rhs; }
26 Comp (const Comp &); // declared but not defined
31 std::unordered_multimap<int, int, std::hash<int>, Comp<int> > m;