Revert "Update aosp/master libcxx rebase to r263688"
The world is burning. This reverts commitc004fd909c, reversing changes made to1418e4163d.
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: libcpp-no-exceptions
|
||||
// <string>
|
||||
|
||||
// size_type capacity() const;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: libcpp-no-exceptions
|
||||
// <string>
|
||||
|
||||
// size_type max_size() const;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: libcpp-no-exceptions
|
||||
// <string>
|
||||
|
||||
// size_type max_size() const;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: libcpp-no-exceptions
|
||||
// <string>
|
||||
|
||||
// void reserve(size_type res_arg=0);
|
||||
@@ -16,7 +15,6 @@
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "min_allocator.h"
|
||||
|
||||
template <class S>
|
||||
@@ -26,7 +24,7 @@ test(S s)
|
||||
typename S::size_type old_cap = s.capacity();
|
||||
S s0 = s;
|
||||
s.reserve();
|
||||
LIBCPP_ASSERT(s.__invariants());
|
||||
assert(s.__invariants());
|
||||
assert(s == s0);
|
||||
assert(s.capacity() <= old_cap);
|
||||
assert(s.capacity() >= s.size());
|
||||
@@ -84,7 +82,7 @@ int main()
|
||||
test(s, S::npos);
|
||||
}
|
||||
}
|
||||
#if TEST_STD_VER >= 11
|
||||
#if __cplusplus >= 201103L
|
||||
{
|
||||
typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: libcpp-no-exceptions
|
||||
// <string>
|
||||
|
||||
// void resize(size_type n);
|
||||
@@ -16,7 +15,6 @@
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "min_allocator.h"
|
||||
|
||||
template <class S>
|
||||
@@ -26,7 +24,7 @@ test(S s, typename S::size_type n, S expected)
|
||||
try
|
||||
{
|
||||
s.resize(n);
|
||||
LIBCPP_ASSERT(s.__invariants());
|
||||
assert(s.__invariants());
|
||||
assert(n <= s.max_size());
|
||||
assert(s == expected);
|
||||
}
|
||||
@@ -57,7 +55,7 @@ int main()
|
||||
S("12345678901234567890123456789012345678901234567890\0\0\0\0\0\0\0\0\0\0", 60));
|
||||
test(S(), S::npos, S("not going to happen"));
|
||||
}
|
||||
#if TEST_STD_VER >= 11
|
||||
#if __cplusplus >= 201103L
|
||||
{
|
||||
typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
|
||||
test(S(), 0, S());
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: libcpp-no-exceptions
|
||||
// <string>
|
||||
|
||||
// void resize(size_type n, charT c);
|
||||
@@ -16,7 +15,6 @@
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "min_allocator.h"
|
||||
|
||||
template <class S>
|
||||
@@ -26,7 +24,7 @@ test(S s, typename S::size_type n, typename S::value_type c, S expected)
|
||||
try
|
||||
{
|
||||
s.resize(n, c);
|
||||
LIBCPP_ASSERT(s.__invariants());
|
||||
assert(s.__invariants());
|
||||
assert(n <= s.max_size());
|
||||
assert(s == expected);
|
||||
}
|
||||
@@ -57,7 +55,7 @@ int main()
|
||||
S("12345678901234567890123456789012345678901234567890aaaaaaaaaa"));
|
||||
test(S(), S::npos, 'a', S("not going to happen"));
|
||||
}
|
||||
#if TEST_STD_VER >= 11
|
||||
#if __cplusplus >= 201103L
|
||||
{
|
||||
typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
|
||||
test(S(), 0, 'a', S());
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "min_allocator.h"
|
||||
|
||||
template <class S>
|
||||
@@ -24,7 +23,7 @@ test(S s)
|
||||
typename S::size_type old_cap = s.capacity();
|
||||
S s0 = s;
|
||||
s.shrink_to_fit();
|
||||
LIBCPP_ASSERT(s.__invariants());
|
||||
assert(s.__invariants());
|
||||
assert(s == s0);
|
||||
assert(s.capacity() <= old_cap);
|
||||
assert(s.capacity() >= s.size());
|
||||
@@ -45,7 +44,7 @@ int main()
|
||||
s.erase(50);
|
||||
test(s);
|
||||
}
|
||||
#if TEST_STD_VER >= 11
|
||||
#if __cplusplus >= 201103L
|
||||
{
|
||||
typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
|
||||
S s;
|
||||
|
||||
Reference in New Issue
Block a user