//===----------------------------------------------------------------------===// // // 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 > // class basic_fstream // basic_filebuf* rdbuf() const; #include #include int main() { { std::fstream fs; assert(fs.rdbuf()); } { std::wfstream fs; assert(fs.rdbuf()); } }