summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-07-25 00:50:32 +0000
committerEric Fiselier <eric@efcs.ca>2016-07-25 00:50:32 +0000
commit93b8e51ebbadbfeb25cdd3e5aebd3aaecfd2394a (patch)
tree3a9705595f32963c56f5526145ab5244cdab70ce /libcxx/test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp
parent4e91ea50a01d9d415bb7e78545329781f5f012e2 (diff)
downloadbcm5719-llvm-93b8e51ebbadbfeb25cdd3e5aebd3aaecfd2394a.tar.gz
bcm5719-llvm-93b8e51ebbadbfeb25cdd3e5aebd3aaecfd2394a.zip
Make dtor_noexcept.pass.cpp tests more portable. Patch from STL@microsoft.com
llvm-svn: 276595
Diffstat (limited to 'libcxx/test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp')
-rw-r--r--libcxx/test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp b/libcxx/test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp
index c4ac1f1a47b..011fd54f95b 100644
--- a/libcxx/test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp
+++ b/libcxx/test/std/strings/basic.string/string.cons/dtor_noexcept.pass.cpp
@@ -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, "");
}
}
OpenPOWER on IntegriCloud