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 | 93b8e51ebbadbfeb25cdd3e5aebd3aaecfd2394a (patch) | |
tree | 3a9705595f32963c56f5526145ab5244cdab70ce /libcxx/test/std/containers/sequences/vector | |
parent | 4e91ea50a01d9d415bb7e78545329781f5f012e2 (diff) | |
download | bcm5719-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/containers/sequences/vector')
-rw-r--r-- | libcxx/test/std/containers/sequences/vector/vector.cons/dtor_noexcept.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/containers/sequences/vector/vector.cons/dtor_noexcept.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.cons/dtor_noexcept.pass.cpp index bd538120442..10a381f9c8c 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.cons/dtor_noexcept.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.cons/dtor_noexcept.pass.cpp @@ -16,6 +16,7 @@ #include <vector> #include <cassert> +#include "test_macros.h" #include "MoveOnly.h" #include "test_allocator.h" @@ -43,6 +44,6 @@ int main() } { typedef std::vector<MoveOnly, some_alloc<MoveOnly>> C; - static_assert(!std::is_nothrow_destructible<C>::value, ""); + LIBCPP_STATIC_ASSERT(!std::is_nothrow_destructible<C>::value, ""); } } |