11305-1.cc: Improve type correctness-wise.
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. From-SVN: r68666
This commit is contained in:
parent
748f6cb5d4
commit
165f54e074
|
@ -1,3 +1,14 @@
|
|||
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
|
||||
|
|
|
@ -32,10 +32,10 @@ void test01()
|
|||
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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -32,12 +32,12 @@ void test02()
|
|||
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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -31,10 +31,10 @@ void test03()
|
|||
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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -31,12 +31,12 @@ void test04()
|
|||
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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue