gcc/libstdc++-v3/testsuite
Ville Voutilainen a577f786b6 Implement the latest proposed resolution of LWG 2756.
* include/std/optional (Optional_base(const _Tp&))
	(Optional_base(_Tp&&), using _Base::_Base): Remove.
	(optional(nullopt_t)): New.
	(optional(_Up&&)): Invoke base directly with in_place
	rather than creating a temporary, add default template
	argument, change constraints.
	(optional(const optional<_Up>&)): Invoke base directly
	with in_place, remove unnecessary constraints.
	(optional(optional<_Up>&& __t)): Likewise.
	(optional(in_place_t, _Args&&...)): New.
	(optional(in_place_t, initializer_list<_Up>, _Args&&...)): Likewise.
	(operator=(_Up&&)): Add default template argument, change constraints.
	(operator=(const optional<_Up>&)): Put is_same first in the
	constraints.
	(operator=(optional<_Up>&&)): Likewise.
	* testsuite/20_util/optional/assignment/5.cc: Add a test to
	verify assignment from something that can't be perfect-forwarded.
	* testsuite/20_util/optional/cons/value.cc: Add tests to verify
	that a nested optional is disengaged when constructed
	from a disengaged element type,	and to verify that assignments
	from an engaged element type engage the optional.

From-SVN: r239593
2016-08-18 23:33:57 +03:00
..
17_intro Remove "-x c" from dg-options in libstdc++ C++ test 2016-08-01 13:18:23 +01:00
18_support Skip C tests if test flags include C++ options 2016-08-02 14:32:26 +01:00
19_diagnostics Move dg-error directives to relevant lines 2016-08-02 20:34:25 +01:00
20_util Implement the latest proposed resolution of LWG 2756. 2016-08-18 23:33:57 +03:00
21_strings Remove duplicate dg-options directive 2016-08-17 15:11:20 +01:00
22_locale
23_containers PR 72847 Prevent double-free in std::vector<bool> 2016-08-16 12:33:16 +01:00
24_iterators Adjust testcase for C++14 compatibility 2016-08-17 14:38:58 +01:00
25_algorithms Use effective target instead of -std in dg-options 2016-08-17 20:43:13 +01:00
26_numerics Add comment explaining why -std=c++14 is needed. 2016-08-17 17:09:15 +01:00
27_io Add c++11 effective target to tests for C++11 features 2016-08-17 20:23:15 +01:00
28_regex Remove unused headers and variables from libstdc++ tests 2016-08-01 13:18:08 +01:00
29_atomics Skip scan-assembler test when -flto is used 2016-08-02 11:02:25 +01:00
30_threads
abi Skip C tests if test flags include C++ options 2016-08-02 14:32:26 +01:00
backward Fix __gnu_cxx::hash_set test to pass in C++98 mode 2016-08-01 13:45:47 +01:00
config
data
decimal
experimental Adjust testcases for C++17 compatibility 2016-08-17 14:39:05 +01:00
ext Adjust DG directives in libstdc++ Profile Mode test 2016-08-17 14:39:14 +01:00
lib * testsuite/lib/libstdc++.exp: Fix typo in comment. 2016-08-06 11:44:17 +01:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions Only run math special function tests for C++11 and later 2016-08-02 14:32:16 +01:00
tr1 Remove unintended dg-options directive 2016-08-18 10:58:28 +01:00
tr2
util New libstdc++ symbol version for new basic_string symbols 2016-07-29 11:42:17 +01:00
Makefile.am
Makefile.in