+2003-06-29 Paolo Carlini <pcarlini@unitus.it>
+
+ * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
+ Improve type correctness-wise.
+ * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
+ Likewise.
+ * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
+ Likewise.
+ * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
+ Likewise.
+
2003-06-29 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (uflow): According to
fb.pubimbue(loc);
fb.pubsetbuf(0, 0);
fb.open("tmp_11305-1", ios_base::out);
- wint_t n1 = fb.sputc(0x20000000);
+ wfilebuf::int_type n1 = fb.sputc(L'e');
wfilebuf* f = fb.close();
- VERIFY( n1 != WEOF );
+ VERIFY( n1 != wfilebuf::traits_type::eof() );
VERIFY( f != NULL );
}
fb.pubimbue(loc);
fb.pubsetbuf(0, 0);
fb.open("tmp_11305-2", ios_base::out);
- wint_t n1 = fb.sputc(0x20000000);
- wint_t n2 = fb.sputc(0x40000000);
+ wfilebuf::int_type n1 = fb.sputc(L'n');
+ wfilebuf::int_type n2 = fb.sputc(L'e');
wfilebuf* f = fb.close();
- VERIFY( n1 != WEOF );
- VERIFY( n2 != WEOF );
+ VERIFY( n1 != wfilebuf::traits_type::eof() );
+ VERIFY( n2 != wfilebuf::traits_type::eof() );
VERIFY( f != NULL );
}
locale loc(__gnu_cxx_test::try_named_locale("en_US.UTF-8"));
fb.pubimbue(loc);
fb.open("tmp_11305-3", ios_base::out);
- wint_t n1 = fb.sputc(0x20000000);
+ wfilebuf::int_type n1 = fb.sputc(L'a');
wfilebuf* f = fb.close();
- VERIFY( n1 != WEOF );
+ VERIFY( n1 != wfilebuf::traits_type::eof() );
VERIFY( f != NULL );
}
locale loc(__gnu_cxx_test::try_named_locale("en_US.UTF-8"));
fb.pubimbue(loc);
fb.open("tmp_11405-4", ios_base::out);
- wint_t n1 = fb.sputc(0x20000000);
- wint_t n2 = fb.sputc(0x40000000);
+ wfilebuf::int_type n1 = fb.sputc(L'i');
+ wfilebuf::int_type n2 = fb.sputc(L'a');
wfilebuf* f = fb.close();
- VERIFY( n1 != WEOF );
- VERIFY( n2 != WEOF );
+ VERIFY( n1 != wfilebuf::traits_type::eof() );
+ VERIFY( n2 != wfilebuf::traits_type::eof() );
VERIFY( f != NULL );
}