Make dtor_noexcept.pass.cpp tests more portable. Patch from STL@microsoft.com

llvm-svn: 276595
This commit is contained in:
Eric Fiselier
2016-07-25 00:50:32 +00:00
parent 4e91ea50a0
commit 93b8e51ebb
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, "");
}
}