diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-06-26 20:21:22 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-06-26 20:21:22 +0000 |
commit | a9fb19d3a5337428a0b1cd6d15818b2395e8caf8 (patch) | |
tree | 419ee091fd7c84bbe3d2f69d4d563aaa14ac817b /libcxx/test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp | |
parent | 7cca38bfd1a4192034d77e30a4d80a57e508a526 (diff) | |
download | bcm5719-llvm-a9fb19d3a5337428a0b1cd6d15818b2395e8caf8.tar.gz bcm5719-llvm-a9fb19d3a5337428a0b1cd6d15818b2395e8caf8.zip |
Make default_noexcept.pass.cpp container tests more portable. Patch from STL@microsoft.com
llvm-svn: 273823
Diffstat (limited to 'libcxx/test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp')
-rw-r--r-- | libcxx/test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp b/libcxx/test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp index f5d54a64bb4..4f860dabac9 100644 --- a/libcxx/test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector.bool/default_noexcept.pass.cpp @@ -19,6 +19,7 @@ #include <vector> #include <cassert> +#include "test_macros.h" #include "test_allocator.h" template <class T> @@ -32,11 +33,11 @@ int main() { { typedef std::vector<bool> C; - static_assert(std::is_nothrow_default_constructible<C>::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible<C>::value, ""); } { typedef std::vector<bool, test_allocator<bool>> C; - static_assert(std::is_nothrow_default_constructible<C>::value, ""); + LIBCPP_STATIC_ASSERT(std::is_nothrow_default_constructible<C>::value, ""); } { typedef std::vector<bool, other_allocator<bool>> C; |