diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-04-28 22:28:23 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-04-28 22:28:23 +0000 |
commit | 1f4231f8cf138c810a55a398c07a422908add70f (patch) | |
tree | 37862fd2450b478ac9fcaf5742d8e2ccdd65be43 /libcxx/test/std/strings/basic.string/string.cons/alloc.pass.cpp | |
parent | 174f8b19815cef8507fe0dbf03e5e639f3a60ba9 (diff) | |
download | bcm5719-llvm-1f4231f8cf138c810a55a398c07a422908add70f.tar.gz bcm5719-llvm-1f4231f8cf138c810a55a398c07a422908add70f.zip |
Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros
llvm-svn: 267947
Diffstat (limited to 'libcxx/test/std/strings/basic.string/string.cons/alloc.pass.cpp')
-rw-r--r-- | libcxx/test/std/strings/basic.string/string.cons/alloc.pass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/strings/basic.string/string.cons/alloc.pass.cpp b/libcxx/test/std/strings/basic.string/string.cons/alloc.pass.cpp index 1c4f2044834..a803d331b8f 100644 --- a/libcxx/test/std/strings/basic.string/string.cons/alloc.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.cons/alloc.pass.cpp @@ -29,7 +29,7 @@ test() static_assert((noexcept(S()) == noexcept(typename S::allocator_type())), "" ); #endif S s; - assert(s.__invariants()); + LIBCPP_ASSERT(s.__invariants()); assert(s.data()); assert(s.size() == 0); assert(s.capacity() >= s.size()); @@ -42,7 +42,7 @@ test() static_assert((noexcept(S(typename S::allocator_type())) == std::is_nothrow_copy_constructible<typename S::allocator_type>::value), "" ); #endif S s(typename S::allocator_type(5)); - assert(s.__invariants()); + LIBCPP_ASSERT(s.__invariants()); assert(s.data()); assert(s.size() == 0); assert(s.capacity() >= s.size()); @@ -63,7 +63,7 @@ test2() static_assert((noexcept(S()) == noexcept(typename S::allocator_type())), "" ); #endif S s; - assert(s.__invariants()); + LIBCPP_ASSERT(s.__invariants()); assert(s.data()); assert(s.size() == 0); assert(s.capacity() >= s.size()); @@ -76,7 +76,7 @@ test2() static_assert((noexcept(S(typename S::allocator_type())) == std::is_nothrow_copy_constructible<typename S::allocator_type>::value), "" ); #endif S s(typename S::allocator_type{}); - assert(s.__invariants()); + LIBCPP_ASSERT(s.__invariants()); assert(s.data()); assert(s.size() == 0); assert(s.capacity() >= s.size()); |