gcc/libstdc++-v3/testsuite/ext
Petur Runolfsson 149639d4f1 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.

2003-09-03  Petur Runolfsson  <peturr02@ru.is>

	* docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
	stringbuf or strstreambuf. Fix typos.

From-SVN: r71026
2003-09-03 14:54:03 +00:00
..
allocators.cc [multiple changes] 2003-06-11 15:52:11 +00:00
concept_checks.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
hash_map.cc
hash_set.cc [multiple changes] 2002-04-28 16:21:32 +00:00
headers.cc [multiple changes] 2003-06-11 15:52:11 +00:00
pod_char_traits.cc char_traits.h: Update copyright, tweak. 2003-07-28 14:46:35 +00:00
rope.cc hash_map: Move into __gnu_cxx, tweak, add using declarations. 2001-12-31 10:22:00 +00:00
stdio_filebuf_2.cc
stdio_filebuf.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
stdio_sync_filebuf_char.cc re PR libstdc++/12048 (unget does not work) 2003-09-03 14:54:03 +00:00
stdio_sync_filebuf_wchar_t.cc re PR libstdc++/12048 (unget does not work) 2003-09-03 14:54:03 +00:00