diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-07-25 00:50:32 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-07-25 00:50:32 +0000 |
commit | 775417d97c68d7cba739f8f7bcfa308d0ddec670 (patch) | |
tree | 35e4534b97341b09b1489ed1d4635ee30575fca8 /test/std/containers/unord/unord.multimap | |
parent | 932604f8d1f8bdc196efea09d701cf4eba614502 (diff) | |
download | external_libcxx-775417d97c68d7cba739f8f7bcfa308d0ddec670.tar.gz external_libcxx-775417d97c68d7cba739f8f7bcfa308d0ddec670.tar.bz2 external_libcxx-775417d97c68d7cba739f8f7bcfa308d0ddec670.zip |
Make dtor_noexcept.pass.cpp tests more portable. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@276595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/std/containers/unord/unord.multimap')
-rw-r--r-- | test/std/containers/unord/unord.multimap/unord.multimap.cnstr/dtor_noexcept.pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/dtor_noexcept.pass.cpp b/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/dtor_noexcept.pass.cpp index 2797f8dcf..b5f440317 100644 --- a/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/dtor_noexcept.pass.cpp +++ b/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/dtor_noexcept.pass.cpp @@ -16,6 +16,7 @@ #include <unordered_map> #include <cassert> +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -54,11 +55,11 @@ int main() } { typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; - static_assert(!std::is_nothrow_destructible<C>::value, ""); + LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible<C>::value, ""); } { typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, some_comp<MoveOnly>> C; - static_assert(!std::is_nothrow_destructible<C>::value, ""); + LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible<C>::value, ""); } } |