gcc/libstdc++-v3/testsuite/20_util/optional
Ville Voutilainen 6964bb3ed9 Implement P0513R0, Poisoning the Hash.
* include/bits/functional_hash.h (__poison_hash): New.
* include/bits/unique_ptr.h
(hash<unique_ptr<_Tp, _Dp>>): Derive from __poison_hash.
* include/std/optional (hash<optional<_Tp>>): Likewise.
* include/std/variant (hash<variant<_Types...>>): Likewise.
* testsuite/20_util/default_delete/48631_neg.cc: Adjust.
* testsuite/20_util/default_delete/void_neg.cc: Likewise.
* testsuite/20_util/optional/hash.cc: New.
* testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
* testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Adjust.
* testsuite/20_util/unique_ptr/hash/1.cc: Add tests for
poisoned fancy pointer hashes.
* testsuite/20_util/variant/hash.cc: New.

From-SVN: r242402
2016-11-14 23:22:53 +02:00
..
assignment Make optional::reset noexcept, make optional::value work in constant expressions. 2016-09-29 18:20:28 +03:00
cons re PR libstdc++/77727 (Unwrapping std::optional constructor is not working for non-transferable object) 2016-09-26 23:51:42 +03:00
constexpr Implement P0032R3, Homogeneous interface for variant, any and optional, 2016-07-14 12:10:05 +03:00
observers Make optional::reset noexcept, make optional::value work in constant expressions. 2016-09-29 18:20:28 +03:00
relops
swap
77288.cc Fix tests on old arm platforms for optional. 2016-09-22 14:01:29 +03:00
hash.cc Implement P0513R0, Poisoning the Hash. 2016-11-14 23:22:53 +02:00
in_place.cc Implement P0032R3, Homogeneous interface for variant, any and optional, 2016-07-14 12:10:05 +03:00
make_optional.cc Implement P0032R3, Homogeneous interface for variant, any and optional, 2016-07-14 12:10:05 +03:00
nullopt.cc
requirements.cc
typedefs.cc