diff options
Diffstat (limited to 'libcxx/test/std/containers/unord/unord.multiset/incomplete.pass.cpp')
-rw-r--r-- | libcxx/test/std/containers/unord/unord.multiset/incomplete.pass.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libcxx/test/std/containers/unord/unord.multiset/incomplete.pass.cpp b/libcxx/test/std/containers/unord/unord.multiset/incomplete.pass.cpp deleted file mode 100644 index f6d8dc17c5a..00000000000 --- a/libcxx/test/std/containers/unord/unord.multiset/incomplete.pass.cpp +++ /dev/null @@ -1,38 +0,0 @@ - - -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// <unordered_set> - -// Check that std::unordered_multiset and it's iterators can be instantiated with an incomplete -// type. - -#include <unordered_set> - -template <class Tp> -struct MyHash { - MyHash() {} - std::size_t operator()(Tp const&) const {return 42;} -}; - -struct A { - typedef std::unordered_multiset<A, MyHash<A> > Map; - Map m; - Map::iterator it; - Map::const_iterator cit; - Map::local_iterator lit; - Map::const_local_iterator clit; -}; - -inline bool operator==(A const& L, A const& R) { return &L == &R; } - -int main() { - A a; -} |