llvm-project/libcxx/test/std/utilities/optional
Billy Robert O'Neal III e52a34bd9d Allow a standard library to implement conditional noexcept for optional and unique_ptr hash functions.
These tests were unconditionally asserting that optional and unique_ptr declare throwing hashes, but MSVC++ implements conditional noexcept forwarding that of the underlying hash function. As a result we were failing these tests but there's nothing forbidding strengthening noexcept in that way.

Changed the ASSERT_NOT_NOEXCEPT asserts to use types which themselves have non-noexcept hash functions.

llvm-svn: 300516
2017-04-18 00:19:50 +00:00
..
optional.bad_optional_access Change the base class of std::bad_optional_access. This is a (subtle) ABI change, and is in response to http://http://wg21.link/LWG2806, which I *expect* to be adopted in Kona. I am making this change now in anticipation, and will get it into 4.0, because (a) 4.0 is the first release with std::optional, and (b) I don't want to make an ABI-change later, when the user base should be significantly larger. Note that I didn't change std::experimental::bad_optional_access, because that's still specified to derive from std::logic_error. 2017-02-05 20:06:38 +00:00
optional.comp_with_t [optional] Update synopsis for LWG2934 2017-04-17 20:15:16 +00:00
optional.hash Allow a standard library to implement conditional noexcept for optional and unique_ptr hash functions. 2017-04-18 00:19:50 +00:00
optional.nullops Implement N4606 optional 2016-10-12 07:46:20 +00:00
optional.nullopt [libcxx] [test] Strip trailing whitespace. 2017-02-05 22:48:27 +00:00
optional.object Additional test file for r300123 2017-04-12 22:51:56 +00:00
optional.relops [optional] Update synopsis for LWG2934 2017-04-17 20:15:16 +00:00
optional.specalg [libcxx] [test] D27268: Fix MSVC x64 warning C4267 "conversion from 'size_t' to 'int' [or 'unsigned int'], possible loss of data", part 2/4. 2016-12-06 01:14:43 +00:00
optional.syn Implement N4606 optional 2016-10-12 07:46:20 +00:00