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
This commit is contained in:
Eric Fiselier
2016-07-25 00:50:32 +00:00
parent 932604f8d1
commit 775417d97c
14 changed files with 32 additions and 18 deletions

View File

@@ -16,6 +16,7 @@
#include <string>
#include <cassert>
#include "test_macros.h"
#include "test_allocator.h"
template <class T>
@@ -38,6 +39,6 @@ int main()
}
{
typedef std::basic_string<char, std::char_traits<char>, some_alloc<char>> C;
static_assert(!std::is_nothrow_destructible<C>::value, "");
LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible<C>::value, "");
}
}