1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // REQUIRES: locale.en_US.UTF-8
13 // template <class charT, class traits = char_traits<charT> >
14 // class basic_streambuf;
21 #include "test_macros.h"
22 #include "platform_support.h" // locale name macros
24 template <class CharT
>
26 : public std::basic_streambuf
<CharT
>
30 assert(this->eback() == 0);
31 assert(this->gptr() == 0);
32 assert(this->egptr() == 0);
33 assert(this->pbase() == 0);
34 assert(this->pptr() == 0);
35 assert(this->epptr() == 0);
43 assert(t
.getloc().name() == "C");
45 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
48 assert(t
.getloc().name() == "C");
52 std::locale::global(std::locale(LOCALE_en_US_UTF_8
));
55 assert(t
.getloc().name() == LOCALE_en_US_UTF_8
);
57 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
60 assert(t
.getloc().name() == LOCALE_en_US_UTF_8
);