| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is dual licensed under the MIT and the University of Illinois Open |
| // Source Licenses. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // const_reference at(size_type pos) const; |
| // reference at(size_type pos); |
| #include "min_allocator.h" |
| test(S s, typename S::size_type pos) |
| assert(s.at(pos) == s[pos]); |
| assert(cs.at(pos) == cs[pos]); |
| #ifndef TEST_HAS_NO_EXCEPTIONS |
| catch (std::out_of_range&) |
| catch (std::out_of_range&) |
| typedef std::basic_string<char, std::char_traits<char>, min_allocator<char>> S; |