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_map fails to instantiate if the hash function is
16 // not copy-constructible. This is mentioned in LWG issue 2436
18 #include <unordered_map>
22 std::size_t operator () (const T& lhs) const { return 0; }
26 Hash (const Hash &); // declared but not defined
31 std::unordered_map<int, int, Hash<int> > m;