gcc/libstdc++-v3/testsuite
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
..
17_intro testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
18_support testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
19_diagnostics Revert PR libstdc++/6594 2002-08-02 16:04:16 +00:00
20_util Testsuite corrections 2003-06-20 23:40:11 +00:00
21_strings testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
22_locale 1.cc, [...]: Update comment regarding the origin of LOCALEDIR. 2003-07-28 04:05:30 +00:00
23_containers Tests for user specialization of standard containers. 2003-07-31 22:23:38 +00:00
24_iterators testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
25_algorithms testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
26_numerics basic_ios.h: Remove *_iter typedefs, change num* typedefs to num_*. 2003-08-12 03:46:18 +00:00
27_io re PR libstdc++/12048 (unget does not work) 2003-09-03 14:57:04 +00:00
backward Revert PR libstdc++/6594 2002-08-02 16:04:16 +00:00
config *.cc: Remove spaces, make sure testcases return zero. 2001-05-12 16:53:08 +00:00
data cin_unget-1.txt: New. 2003-08-26 11:46:22 +00:00
demangle *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
ext re PR libstdc++/12048 (unget does not work) 2003-09-03 14:54:03 +00:00
lib Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS): Remove unneeded variable assignments. 2003-08-05 01:34:28 +00:00
libstdc++-dg Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS): Remove unneeded variable assignments. 2003-08-05 01:34:28 +00:00
performance *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
thread pthread1.cc: Add alpha*-*-osf* to dg-do run, dg-options. 2003-07-31 12:03:59 +00:00
Makefile.am Makefile.am: Remove trailing whitespace. 2003-08-27 21:29:43 +00:00
Makefile.in Makefile.am: Remove trailing whitespace. 2003-08-27 21:29:43 +00:00
abi_check.cc create_testsuite_files: New file. 2003-07-06 03:14:37 +00:00
printnow.c
testsuite_allocator.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
testsuite_allocator.h *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
testsuite_hooks.cc testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
testsuite_hooks.h testsuite_hooks.h: Remove list include. 2003-07-28 17:12:16 +00:00
testsuite_io.h *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
testsuite_performance.h Makefile.am (check-abi): Change libstdc++-v3 to libstdc++. 2003-08-08 15:24:00 +00:00