mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-21 23:30:38 +08:00
Found a couple bugs in the test suite. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -63,6 +63,7 @@ struct some_hash
|
||||
typedef T value_type;
|
||||
some_hash() {}
|
||||
some_hash(const some_hash&);
|
||||
std::size_t operator()(const T&) const { return 0; }
|
||||
};
|
||||
|
||||
template <class T>
|
||||
@@ -71,6 +72,7 @@ struct some_hash2
|
||||
typedef T value_type;
|
||||
some_hash2() {}
|
||||
some_hash2(const some_hash2&);
|
||||
std::size_t operator()(const T&) const { return 0; }
|
||||
};
|
||||
|
||||
#if TEST_STD_VER >= 14
|
||||
|
@@ -63,6 +63,7 @@ struct some_hash
|
||||
typedef T value_type;
|
||||
some_hash() {}
|
||||
some_hash(const some_hash&);
|
||||
std::size_t operator()(const T&) const { return 0; }
|
||||
};
|
||||
|
||||
template <class T>
|
||||
@@ -71,6 +72,7 @@ struct some_hash2
|
||||
typedef T value_type;
|
||||
some_hash2() {}
|
||||
some_hash2(const some_hash2&);
|
||||
std::size_t operator()(const T&) const { return 0; }
|
||||
};
|
||||
|
||||
#if TEST_STD_VER >= 14
|
||||
|
@@ -60,7 +60,7 @@ int main()
|
||||
static_assert(std::is_same<StdSet, PmrSet>::value, "");
|
||||
}
|
||||
{
|
||||
pmr::unordered_set<int, int> m;
|
||||
pmr::unordered_set<int> m;
|
||||
assert(m.get_allocator().resource() == pmr::get_default_resource());
|
||||
}
|
||||
{
|
||||
@@ -79,7 +79,7 @@ int main()
|
||||
static_assert(std::is_same<StdSet, PmrSet>::value, "");
|
||||
}
|
||||
{
|
||||
pmr::unordered_multiset<int, int> m;
|
||||
pmr::unordered_multiset<int> m;
|
||||
assert(m.get_allocator().resource() == pmr::get_default_resource());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user