| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // const charT* data() const; |
| typedef typename S::traits_type T; |
| const typename S::value_type* str = s.data(); |
| assert(T::compare(str, &s[0], s.size()) == 0); |
| assert(T::eq(str[s.size()], typename S::value_type())); |
| assert(T::eq(str[0], typename S::value_type())); |
| test(S("abcdefghijklmnopqrst")); |