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>
|
||||
|
||||
// basic_string substr(size_type pos = 0, size_type n = npos) const;
|
||||
@@ -17,7 +16,6 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "min_allocator.h"
|
||||
|
||||
template <class S>
|
||||
@@ -27,7 +25,7 @@ test(const S& s, typename S::size_type pos, typename S::size_type n)
|
||||
try
|
||||
{
|
||||
S str = s.substr(pos, n);
|
||||
LIBCPP_ASSERT(str.__invariants());
|
||||
assert(str.__invariants());
|
||||
assert(pos <= s.size());
|
||||
typename S::size_type rlen = std::min(n, s.size() - pos);
|
||||
assert(str.size() == rlen);
|
||||
@@ -102,7 +100,7 @@ int main()
|
||||
test(S("lsaijeqhtrbgcdmpfkno"), 20, 0);
|
||||
test(S("dplqartnfgejichmoskb"), 21, 0);
|
||||
}
|
||||
#if TEST_STD_VER >= 11
|
||||
#if __cplusplus >= 201103L
|
||||
{
|
||||
typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S;
|
||||
test(S(""), 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user