diff options
Diffstat (limited to 'libcxx/test/std/iterators')
-rw-r--r-- | libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.ops/failed.pass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.ops/failed.pass.cpp b/libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.ops/failed.pass.cpp index 5cc9cf92872..64997d382dd 100644 --- a/libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.ops/failed.pass.cpp +++ b/libcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/ostreambuf.iter.ops/failed.pass.cpp @@ -19,23 +19,23 @@ template <typename Char, typename Traits = std::char_traits<Char> > struct my_streambuf : public std::basic_streambuf<Char,Traits> { - typedef typename std::basic_streambuf<Char,Traits>::int_type int_type; - typedef typename std::basic_streambuf<Char,Traits>::char_type char_type; - - my_streambuf() {} - int_type sputc(char_type) { return Traits::eof(); } - }; + typedef typename std::basic_streambuf<Char,Traits>::int_type int_type; + typedef typename std::basic_streambuf<Char,Traits>::char_type char_type; + + my_streambuf() {} + int_type sputc(char_type) { return Traits::eof(); } + }; int main() { { - my_streambuf<char> buf; + my_streambuf<char> buf; std::ostreambuf_iterator<char> i(&buf); i = 'a'; assert(i.failed()); } { - my_streambuf<wchar_t> buf; + my_streambuf<wchar_t> buf; std::ostreambuf_iterator<wchar_t> i(&buf); i = L'a'; assert(i.failed()); |