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 //===----------------------------------------------------------------------===//
12 // Check that std::unordered_set fails to instantiate if the hash function is
13 // not copy-constructible. This is mentioned in LWG issue 2436
15 #include <unordered_set>
19 std::size_t operator () (const T& lhs) const { return 0; }
23 Hash (const Hash &); // declared but not defined
28 std::unordered_set<int, Hash<int> > m;