//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // wbuffer_convert // streambuf *rdbuf(streambuf *bytebuf); #include #include #include #include int main() { typedef std::wbuffer_convert > B; { std::stringstream s; B b; assert(b.rdbuf() == nullptr); b.rdbuf(s.rdbuf()); assert(b.rdbuf() == s.rdbuf()); } }