[libcxx] [test] Fix whitespace, NFC.

Strip trailing whitespace and untabify.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@331576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Stephan T. Lavavej
2018-05-05 01:40:27 +00:00
parent fcd4f15ced
commit 8663c51b30

View File

@@ -19,23 +19,23 @@
template <typename Char, typename Traits = std::char_traits<Char> > template <typename Char, typename Traits = std::char_traits<Char> >
struct my_streambuf : public std::basic_streambuf<Char,Traits> { 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>::int_type int_type;
typedef typename std::basic_streambuf<Char,Traits>::char_type char_type; typedef typename std::basic_streambuf<Char,Traits>::char_type char_type;
my_streambuf() {} my_streambuf() {}
int_type sputc(char_type) { return Traits::eof(); } int_type sputc(char_type) { return Traits::eof(); }
}; };
int main() int main()
{ {
{ {
my_streambuf<char> buf; my_streambuf<char> buf;
std::ostreambuf_iterator<char> i(&buf); std::ostreambuf_iterator<char> i(&buf);
i = 'a'; i = 'a';
assert(i.failed()); assert(i.failed());
} }
{ {
my_streambuf<wchar_t> buf; my_streambuf<wchar_t> buf;
std::ostreambuf_iterator<wchar_t> i(&buf); std::ostreambuf_iterator<wchar_t> i(&buf);
i = L'a'; i = L'a';
assert(i.failed()); assert(i.failed());