Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros

llvm-svn: 267947
This commit is contained in:
Eric Fiselier committed 2016-04-28 22:28:23 +00:00
1 parent 174f8b1981
commit 1f4231f8cf
101 files changed
+390 -342

No files matched your search

@@ -17,6 +17,7 @@
#include <algorithm>
#include <cassert>
#include "test_macros.h"
#include "min_allocator.h"
template <class S>
@@ -104,7 +105,7 @@ int main()
test(S("abcdefghijklmnopqrst"), s, 20, 1);
test(S("abcdefghijklmnopqrst"), s, 21, 0);
}
#if __cplusplus >= 201103L
#if TEST_STD_VER >= 11
{
typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
char s[50];