gcc/libstdc++-v3/testsuite/27_io
Petur Runolfsson 4c620c398e re PR libstdc++/12048 (unget does not work)
2003-09-03  Petur Runolfsson  <peturr02@ru.is>

	PR libstdc++/12048
	* include/ext/stdio_sync_filebuf.h
	(stdio_sync_filebuf::_M_unget_buf): Declare it.
	(stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
	(stdio_sync_filebuf::uflow): Store the returned character in
	_M_unget_buf.
	(stdio_sync_filebuf::pbackfail): If argument is eof(), pass
	_M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
	(stdio_sync_filebuf<char>::xsgetn): Store last read character in
	_M_unget_buf, if any, else eof().
	(stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
	_M_unget_buf, if any, else eof().
	* testsuite/27_io/objects/char/12048.cc: Rename to...
	* testsuite/27_io/objects/char/12048-1.cc: ...this.
	* testsuite/27_io/objects/char/12048-2.cc: New test.
	* testsuite/27_io/objects/char/12048-3.cc: New test.
	* testsuite/27_io/objects/char/12048-4.cc: New test.
	* testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
	* testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
	* testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
	* testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
	* testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
	* testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
	* testsuite/ext/stdio_sync_filebuf_char.cc
	(test02, test03, test04, test05): New tests.
	* testsuite/ext/stdio_sync_filebuf_wchar_t.cc
	(test02, test03, test04, test05): New tests.

From-SVN: r71027
2003-09-03 14:57:04 +00:00
..
basic_filebuf *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
basic_fstream *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
basic_ifstream std_fstream.h (_S_pback_size): Remove definition. 2003-05-22 22:16:41 +00:00
basic_ios *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
basic_iostream 3.cc: _S_pback_size now belongs to basic_filebuf. 2003-04-23 22:34:51 +00:00
basic_istream testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
basic_istringstream 3.cc: _S_pback_size now belongs to basic_filebuf. 2003-04-23 22:34:51 +00:00
basic_ofstream std_fstream.h (_S_pback_size): Remove definition. 2003-05-22 22:16:41 +00:00
basic_ostream testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
basic_ostringstream 3.cc: _S_pback_size now belongs to basic_filebuf. 2003-04-23 22:34:51 +00:00
basic_streambuf *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
basic_stringbuf *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
basic_stringstream *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
fpos *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
ios_base *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
manipulators Reshuffle 27_io testsuite. 2003-04-10 07:15:40 +00:00
objects re PR libstdc++/12048 (unget does not work) 2003-09-03 14:57:04 +00:00
types Move from CPP to CXX. 2003-07-05 04:05:45 +00:00