gcc/libstdc++-v3/testsuite
Jonathan Wakely d0dda80415 PR libstdc++/81468 constrain std::chrono::time_point constructor
PR libstdc++/81468
	* include/std/chrono (__enable_if_is_duration)
	(__disable_if_is_duration): New alias templates to simplify SFINAE.
	(duration_cast, floor, ceil): Use __enable_if_is_duration.
	(duration::__is_float, duration::__is_harmonic): New alias templates
	to simplify SFINAE.
	(duration::duration(const _Rep2&)): Use _Require, __is_float and
	__is_harmonic.
	(duration::duration(const duration<_Rep2, _Period2>&)): Likewise.
	(__common_rep_type): Remove, replace with ...
	(__common_rep_t): New alias template.
	(operator*, operator/, operator%): Use __common_rep_t and
	__disable_if_is_duration.
	(time_point::time_point(const time_point<clock, _Dur2>&)): Add missing
	constraint from LWG DR 1177.
	* testsuite/20_util/duration/cons/dr1177.cc: New.
	* testsuite/20_util/duration/literals/range.cc: Update dg-error line.
	* testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
	* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
	* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
	* testsuite/20_util/time_point/cons/81468.cc: New.

From-SVN: r252085
2017-09-13 15:07:44 +01:00
..
17_intro re PR testsuite/81056 (FAIL: 17_intro/names.cc (test for excess errors)) 2017-08-20 18:52:59 +00:00
18_support Use pthread effective-target in testsuite 2017-06-15 12:18:05 +00:00
19_diagnostics
20_util PR libstdc++/81468 constrain std::chrono::time_point constructor 2017-09-13 15:07:44 +01:00
21_strings PR libstdc++/70483 make std::string_view fully constexpr 2017-09-11 22:47:41 +01:00
22_locale Fix memory leaks in libstdc++ tests 2017-07-06 13:42:51 +01:00
23_containers PR libstdc++/81891 fix double-free in hashtable constructor 2017-08-18 18:46:57 +01:00
24_iterators PR libstdc++/81912 make std::__iterator_category constexpr 2017-08-21 16:14:27 +01:00
25_algorithms PR libstdc++/81221 only run new test for check-parallel 2017-06-27 17:19:16 +01:00
26_numerics PR libstdc++/79433 no #error for including headers with wrong -std 2017-09-12 15:02:59 +01:00
27_io PR libstdc++/81808 skip test if reading directory doesn't fail 2017-08-11 01:14:57 +01:00
28_regex re PR libstdc++/71500 (regex::icase only works on first character in a range) 2017-09-11 19:02:34 +00:00
29_atomics
30_threads PR libstdc++/79433 no #error for including headers with wrong -std 2017-09-12 15:02:59 +01:00
abi Include missing header for std::free 2017-07-10 19:43:02 +01:00
backward
config
data
decimal
experimental PR libstdc++/79433 no #error for including TS headers with wrong -std 2017-09-12 15:03:06 +01:00
ext PR libstdc++/81751 don't call fflush(NULL) 2017-08-09 18:52:10 +01:00
lib
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
libstdc++-xmethods
performance PR libstdc++/81476 Optimise vector insertion from input iterators 2017-07-19 20:32:15 +01:00
special_functions Fix missing returns in libstdc++ header and tests 2017-06-16 09:13:37 +01:00
tr1 Use pthread effective-target in testsuite 2017-06-15 12:18:05 +00:00
tr2
util Fix indentation in libstdc++ testsuite utils 2017-07-19 15:49:00 +01:00
Makefile.am
Makefile.in