//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // template T4 setfill(charT c); #include #include template struct testbuf : public std::basic_streambuf { testbuf() {} }; int main() { { testbuf sb; std::ostream os(&sb); os << std::setfill('*'); assert(os.fill() == '*'); } { testbuf sb; std::wostream os(&sb); os << std::setfill(L'*'); assert(os.fill() == L'*'); } }