| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| // const_reference operator[](size_type pos) const; |
| // reference operator[](size_type pos); |
| #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) |
| #include "min_allocator.h" |
| for (S::size_type i = 0; i < cs.size(); ++i) |
| assert(s[i] == static_cast<char>('0' + i)); |
| assert(cs[cs.size()] == '\0'); |
| typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S; |
| for (S::size_type i = 0; i < cs.size(); ++i) |
| assert(s[i] == static_cast<char>('0' + i)); |
| assert(cs[cs.size()] == '\0'); |