gcc/libstdc++-v3/testsuite
Jonathan Wakely 9b81754858 Make streams movable and swappable.
PR libstdc++/54316
	PR libstdc++/53626
	* config/abi/pre/gnu.ver: Add new exports.
	* config/io/basic_file_stdio.h (__basic_file): Support moving and
	swapping.
	* include/bits/basic_ios.h (basic_ios::move, basic_ios::swap):
	Likewise.
	* include/bits/ios_base.h (ios_base::_M_move, ios_base::_M_swap):
	Likewise.
	* include/bits/fstream.tcc (basic_filebuf): Likewise.
	* include/bits/move.h (__exchange): Define for C++11 mode.
	* include/ext/stdio_filebuf.h (stdio_filebuf): Support moving and
	swapping.
	* include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf): Likewise.
	* include/std/fstream (basic_filebuf, basic_ifstream, basic_ofstream,
	basic_fstream): Likewise.
	* include/std/ios: Remove whitespace.
	* include/std/istream (basic_istream, basic_iostream): Support moving
	and swapping.
	* include/std/ostream (basic_ostream): Likewise.
	* include/std/sstream (basic_stringbuf, basic_istringstream,
	basic_ostringstream, basic_stringstream): Likewise.
	* include/std/streambuf (basic_streambuf): Do not default copy
	constructor and assignment on first declaration.
	* include/std/utility (exchange): Forward to __exchange.
	* testsuite/27_io/basic_filebuf/cons/char/copy_neg.cc: New.
	* src/c++11/Makefile.am: Add stream-related files.
	* src/c++11/Makefile.in: Regenerate.
	* src/c++11/ext11-inst.cc (stdio_filebuf, stdio_sync_filebuf):
	New file for explicit instantiation definitions.
	* src/c++11/ios.cc: Move from src/c++98 to here.
	(ios_base::_M_move, ios_base::_M_swap): Define.
	* src/c++11/ios-inst.cc: Move from src/c++98 to here.
	* src/c++11/iostream-inst.cc: Likewise.
	* src/c++11/istream-inst.cc: Likewise.
	* src/c++11/ostream-inst.cc: Likewise.
	* src/c++11/sstream-inst.cc: Likewise.
	* src/c++11/streambuf-inst.cc: Likewise.
	* src/c++98/Makefile.am: Remove stream-related files.
	* src/c++98/Makefile.in: Regenerate.
	* src/c++98/ext-inst.cc (stdio_filebuf): Remove explicit
	instantiations.
	* src/c++98/misc-inst.cc (stdio_sync_filebuf): Likewise.
	* src/c++98/ios-inst.cc: Move to src/c++11/.
	* src/c++98/ios.cc: Move to src/c++11/.
	* src/c++98/iostream-inst.cc: Likewise.
	* src/c++98/istream-inst.cc: Likewise.
	* src/c++98/ostream-inst.cc: Likewise.
	* src/c++98/sstream-inst.cc: Likewise.
	* src/c++98/streambuf-inst.cc: Likewise.
	* testsuite/27_io/basic_filebuf/cons/char/copy_neg.cc: New.
	* testsuite/27_io/basic_fstream/cons/move.cc: New.
	* testsuite/27_io/basic_fstream/assign/1.cc: New.
	* testsuite/27_io/basic_ifstream/cons/move.cc: New.
	* testsuite/27_io/basic_ifstream/assign/1.cc: New.
	* testsuite/27_io/basic_istringstream/assign/1.cc: New.
	* testsuite/27_io/basic_istringstream/cons/move.cc: New.
	* testsuite/27_io/basic_ofstream/cons/move.cc: New.
	* testsuite/27_io/basic_ofstream/assign/1.cc: New.
	* testsuite/27_io/basic_ostringstream/assign/1.cc: New.
	* testsuite/27_io/basic_ostringstream/cons/move.cc: New.
	* testsuite/27_io/basic_stringstream/assign/1.cc: New.
	* testsuite/27_io/basic_stringstream/cons/move.cc: New.

From-SVN: r215463
2014-09-22 14:34:09 +01:00
..
17_intro
18_support 62154.cc: Disable when the target doesn't provide atomic builtins. 2014-08-21 09:11:00 +00:00
19_diagnostics
20_util re PR libstdc++/61947 (Ambiguous calls when constructing std::tuple) 2014-07-29 18:30:34 +01:00
21_strings basic_string.h (getline): Qualify call to prevent ADL and add overloads for rvalue streams. 2014-08-12 16:19:53 +01:00
22_locale
23_containers Make std::deque meet C++11 allocator requirements. 2014-09-09 18:29:32 +01:00
24_iterators
25_algorithms re PR libstdc++/59603 (std::random_shuffle tries to swap element with itself) 2014-09-12 14:30:35 +01:00
26_numerics parser.c (cp_parser_init_declarator): Remove redundant check of decl_specifiers->type. 2014-08-14 09:15:11 +00:00
27_io Make streams movable and swappable. 2014-09-22 14:34:09 +01:00
28_regex re PR libstdc++/61720 (std::regex_search matches incorrectly) 2014-07-15 04:28:51 +00:00
29_atomics
30_threads alloc.cc: Fix use of test allocator. 2014-06-26 00:05:58 +01:00
abi
backward
config
data
decimal
experimental any (any::_Manager_alloc::_Data): Reorder tuple members to simplify pretty printing. 2014-07-10 19:08:35 +01:00
ext *: Fix incorrect standard references in comments. 2014-08-28 16:46:02 +01:00
lib Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
libstdc++-abi Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
libstdc++-dg
libstdc++-prettyprinters printers.py (SingleObjContainerPrinter): New base class for experimental::any and experimental::optional printers. 2014-07-15 13:00:18 +01:00
libstdc++-xmethods Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
performance
tr1 parser.c (cp_parser_init_declarator): Remove redundant check of decl_specifiers->type. 2014-08-14 09:15:11 +00:00
tr2
util 2014-07-29 François Dumont <fdumont@gcc.gnu.org> 2014-07-29 19:47:19 +00:00
Makefile.am Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
Makefile.in Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00