Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros
llvm-svn: 267947
This commit is contained in:
1 parent
174f8b1981
commit
1f4231f8cf
101 files changed
+390
-342
No files matched your search
@@ -15,6 +15,7 @@
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "min_allocator.h"
|
||||
|
||||
template <class S>
|
||||
@@ -22,7 +23,7 @@ void
|
||||
test(S s, S str, S expected)
|
||||
{
|
||||
s.append(str);
|
||||
assert(s.__invariants());
|
||||
LIBCPP_ASSERT(s.__invariants());
|
||||
assert(s == expected);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user