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 //===----------------------------------------------------------------------===//
11 // template<charT> T4 setfill(charT c);
17 #include "test_macros.h"
19 template <class CharT
>
21 : public std::basic_streambuf
<CharT
>
31 os
<< std::setfill('*');
32 assert(os
.fill() == '*');
34 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
37 std::wostream
os(&sb
);
38 os
<< std::setfill(L
'*');
39 assert(os
.fill() == L
'*');