gcc/libstdc++-v3/testsuite
Ville Voutilainen 4fea820523 re PR libstdc++/87855 (std::optional<T> only copy-constructible if T is trivially copy-constructible)
PR libstdc++/87855

Also implement P0602R4 (variant and optional
should propagate copy/move triviality) for std::optional.
* include/std/optional (_Optional_payload): Change
the main constraints to check constructibility in
addition to assignability.
(operator=): Make constexpr.
(_M_reset): Likewise.
(_M_construct): Likewise.
(operator->): Likewise.
* testsuite/20_util/optional/assignment/8.cc: Adjust.
* testsuite/20_util/optional/assignment/9.cc: New.

From-SVN: r266278
2018-11-19 17:05:18 +02:00
..
17_intro C++: simplify output from suggest_alternatives_for 2018-10-29 23:53:50 +00:00
18_support * testsuite/18_support/new_nothrow.cc: XFAIL on AIX. 2018-08-21 10:03:16 -04:00
19_diagnostics Add workaround for non-unique errno values on AIX 2018-08-03 13:53:34 +01:00
20_util re PR libstdc++/87855 (std::optional<T> only copy-constructible if T is trivially copy-constructible) 2018-11-19 17:05:18 +02:00
21_strings PR libstdc++/88084 - Implement LWG 2777 2018-11-19 10:53:59 +00:00
22_locale Adjust test to pass with latest glibc 2018-10-15 14:55:42 +01:00
23_containers PR libstdc++/87809 avoid invalid expressions in exception specifications 2018-10-30 14:49:43 +00:00
24_iterators PR libstdc++/86734 make reverse_iterator::operator-> more robust 2018-07-30 18:13:05 +01:00
25_algorithms 10.cc: Add dg-require-fileio. 2018-08-31 15:09:47 -04:00
26_numerics PR libstdc++/87641 correctly initialize accumulator in valarray::sum() 2018-10-18 16:38:50 +01:00
27_io 48101_neg.cc: Remove dg-prune-output 'std' from regex pattern for versioned namespace... 2018-10-28 20:57:04 +00:00
28_regex Fix compilation error with _GLIBCXX_PARALLEL 2018-10-19 14:46:24 +01:00
29_atomics Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00
30_threads PR libstdc++/80538 Only call sleep for non-zero values 2018-10-11 17:37:23 +01:00
abi Update copyright years. 2018-01-03 11:03:58 +01:00
backward Remove duplicate function call in test 2018-05-02 17:27:01 +01:00
config Update copyright years. 2018-01-03 11:03:58 +01:00
data
decimal Update copyright years. 2018-01-03 11:03:58 +01:00
experimental Rename namespace alias in test to avoid name collision 2018-10-16 17:13:00 +01:00
ext Fix tests that use allocators with incorrect value types 2018-10-19 22:49:40 +01:00
lib [Patch][libstdc++.exp] Update the usage of cached result. 2018-11-16 14:36:40 +00:00
libstdc++-abi Update copyright years. 2018-01-03 11:03:58 +01:00
libstdc++-dg Add missing dir to create_testsuite_files script 2018-11-14 14:25:00 +00:00
libstdc++-prettyprinters printers.py (NodeIteratorPrinter): New. 2018-03-08 06:26:15 +00:00
libstdc++-xmethods Update copyright years. 2018-01-03 11:03:58 +01:00
performance Implement std::pmr::synchronized_pool_resource 2018-11-17 23:35:44 +00:00
special_functions PR libstdc++/83566 - cyl_bessel_j returns wrong result for x>1000 2018-11-18 18:32:26 +00:00
tr1 PR libstdc++/83566 - cyl_bessel_j returns wrong result for x>1000 2018-11-18 18:32:26 +00:00
tr2 PR libstdc++/87784 fix dynamic_bitset::push_back 2018-10-30 14:49:32 +00:00
util Optimize pool resource allocation 2018-11-15 00:04:19 +00:00
Makefile.am Update copyright years. 2018-01-03 11:03:58 +01:00
Makefile.in Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00