gcc/libstdc++-v3/testsuite
Benjamin Kosnik 69302d8b5e std_streambuf.h: Remove cached locale facets.
2001-03-14  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2020
	* include/bits/std_streambuf.h: Remove cached locale facets.
	(basic_streambuf::_M_buf_fctype): Remove.
	(basic_streambuf::~basic_streambuf): Remove here.
	(basic_streambuf::basic_streambuf): Same.
	(basic_streambuf::imbue): Same.
	* include/bits/fstream.tcc (filebuf::imbue): Remove _M_buf_fctype.
	* include/bits/std_fstream.h (basic_filebuf::_M_fcvt): Remove.
	(basic_filebuf::~basic_filebuf()): Remove here.
	* include/bits/fstream.tcc (basic_filebuf::basic_filebuf): Same.
	(basic_filebuf::imbue): Same.
	* include/bits/localefwd.h (_Count_ones): Remove.
	(locale::_S_num_categories): Just use 6, since this doesn't
	actually change, ever.
	* include/bits/locale_facets.tcc (has_facet): Simplify.
	(use_facet): Same.
	* testsuite/27_io/filebuf.cc (test06): Add tests.

From-SVN: r40472
2001-03-14 20:46:34 +00:00
..
17_intro std_cerrno.h: Don't define errno in std::. 2001-03-06 23:32:59 +00:00
18_support
19_diagnostics std_stdexcept.h (runtime_error): Make string member non-const. 2001-02-27 23:00:35 +00:00
20_util
21_strings char_traits.cc: Move to ... 2001-02-16 23:58:28 +00:00
22_locale Preliminary named locales. 2001-01-30 09:18:51 +00:00
23_containers
24_iterators
25_algorithms
26_numerics
27_io std_streambuf.h: Remove cached locale facets. 2001-03-14 20:46:34 +00:00
config default.exp: New file. 2001-02-05 02:48:17 +00:00
ext
lib libstdc++.exp (dg-test): Lift, temporarily, out of dejagnu/dg.exp. 2001-02-15 03:57:39 +00:00
libstdc++.tests tests.exp: New file. 2001-01-20 05:09:08 +00:00
debug_assert.h
Makefile.am Makefile.am: New file. 2001-02-10 00:58:16 +00:00
printnow.c
README README: Add more comment. 2001-01-28 15:13:08 +00:00

We're in the process of converting the existing testsuite machinery to
use the new style DejaGnu framework.  Eventually, we'll abandon
../mkcheck.in in favor of this new testsuite framework.  

  Basically, a testcase contains dg-keywords (see dg.exp) indicating
what to do and what kinds of behaviour are to be expected.  New
testcases should be written with the new style DejaGnu framework in mind.

  The V3 testing framework supports additional keywords for the purpose
of easing the job of writing testcases.  All V3-keywords are of the
form @xxx@.  Currently supported keywords include:

  @require@ <files>
      The existence of <files> is essential for the test to complete
      successfully.  For example, a testcase foo.C using bar.baz as
      input file could say
	    // @require@ bar.baz
      The special variable % stands for the rootname, e.g. the
      file-name without its `.C' extension.  Example of use (taken
      verbatim from 27_io/filebuf.cc)
	   // @require@ %-*.tst %-*.txt

  @diff@ <first-list> <second-list>
      After the testcase compiles and ran successfully, diff
      <first-list> against <second-list>, these lists should have the
      same length.  The test fails if diff returns non-zero a pair of
      files.

-- Gaby