| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // template <class charT, class traits = char_traits<charT> > |
| // class basic_ostream::sentry; |
| // explicit sentry(basic_ostream<charT,traits>& os); |
| : public std::basic_streambuf<CharT> |
| std::ostream os((std::streambuf*)0); |
| std::ostream::sentry s(os); |
| std::ostream::sentry s(os); |
| assert(sync_called == 0); |
| std::ostream::sentry s(os); |
| assert(sync_called == 1); |