mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 07:51:22 +00:00
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
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user