| commit | 41c4de43e6f58158da17ba8434cb26c807ac248a | [log] [tgz] |
|---|---|---|
| author | Michael Park <mcypark@gmail.com> | Thu Mar 23 06:21:24 2017 +0000 |
| committer | Michael Park <mcypark@gmail.com> | Thu Mar 23 06:21:24 2017 +0000 |
| tree | 3f35f0c77a8186d7dce3248bcfdf13409ce7e071 | |
| parent | d8323168530aaea57926c6031283d43b2dbf9858 [diff] [blame] |
Worked around GCC bug 56480. Explicit specialization in a different namespace. Summary: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480 Reviewers: EricWF Reviewed By: EricWF Differential Revision: https://reviews.llvm.org/D31273 llvm-svn: 298581
diff --git a/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp b/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp index 8f94d6b..1e40881 100644 --- a/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp +++ b/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp
@@ -22,11 +22,15 @@ struct A {}; struct B {}; +namespace std { + template <> -struct std::hash<B> { +struct hash<B> { size_t operator()(B const&) { return 0; } }; +} + int main() { using std::optional;