gcc/libstdc++-v3/testsuite
Jonathan Wakely a01462ae8b libstdc++: Fix std::format output of %C for negative years
During discussion of LWG 4022 I noticed that we do not correctly
implement floored division for the century. We were just truncating
towards zero, rather than applying the floor function. For negative
values that rounds the wrong way.

libstdc++-v3/ChangeLog:

	* include/bits/chrono_io.h (__formatter_chrono::_M_C_y_Y): Fix
	rounding for negative centuries.
	* testsuite/std/time/year/io.cc: Check %C for negative years.
2023-12-12 22:33:32 +00:00
..
17_intro libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
18_support c++: implement P2564, consteval needs to propagate up [PR107687] 2023-12-04 19:42:09 -05:00
19_diagnostics libstdc++: Fix aligned formatting of stacktrace_entry and thread::id [PR112564] 2023-11-16 17:20:00 +00:00
20_util libstdc++: Add test for LWG Issue 3897 2023-12-05 16:40:43 +00:00
21_strings libstdc++: Redefine __glibcxx_assert to work in C++23 constexpr 2023-12-05 23:33:22 +00:00
22_locale libstdc++: testsuite: Enhance codecvt_unicode with tests for length() 2023-10-21 11:54:00 +01:00
23_containers c++: partial ordering of object parameter [PR53499] 2023-12-06 09:02:01 -05:00
24_iterators libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
25_algorithms libstdc++: Add freestanding feature test macros (P2407R5) 2023-11-21 15:58:21 +00:00
26_numerics libstdc++: Redefine __glibcxx_assert to work in C++23 constexpr 2023-12-05 23:33:22 +00:00
27_io libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
28_regex libstdc++: Remove dg-options "-std=gnu++20" from remaining tests 2023-09-16 00:10:46 +01:00
29_atomics libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
30_threads libstdc++: Fix aligned formatting of stacktrace_entry and thread::id [PR112564] 2023-11-16 17:20:00 +00:00
abi Update copyright years. 2023-01-16 11:52:17 +01:00
backward Update copyright years. 2023-01-16 11:52:17 +01:00
config libstdc++: Remove trailing whitespace from dejagnu files 2023-09-07 17:05:54 +01:00
data
decimal Update copyright years. 2023-01-16 11:52:17 +01:00
experimental libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
ext c++: non-dependent assignment checking [PR63198, PR18474] 2023-09-18 14:47:52 -04:00
lib testsuite: Add dg-require-atomic-cmpxchg-word 2023-10-13 02:19:53 +02:00
libstdc++-abi libstdc++: Remove trailing whitespace from dejagnu files 2023-09-07 17:05:54 +01:00
libstdc++-dg libstdc++: Add log line to testsuite output 2023-09-15 21:57:40 +01:00
libstdc++-prettyprinters libstdc++: Remove trailing whitespace from dejagnu files 2023-09-07 17:05:54 +01:00
libstdc++-xmethods libstdc++: Fix std::deque::operator[] Xmethod [PR112491] 2023-11-15 11:16:49 +00:00
performance Update copyright years. 2023-01-16 11:52:17 +01:00
special_functions Update copyright years. 2023-01-16 11:52:17 +01:00
std libstdc++: Fix std::format output of %C for negative years 2023-12-12 22:33:32 +00:00
tr1 libstdc++: Fix tr1/8_c_compatibility/cstdio/functions.cc regression with recent glibc 2023-10-13 09:09:32 +02:00
tr2 libstdc++: Fix std::tr2::dynamic_bitset support for alternate characters 2023-11-21 15:58:21 +00:00
util libstdc++: Fix access error in __gnu_test::uneq_allocator 2023-11-23 17:44:26 +00:00
Makefile.am libstdc++: Add support for running tests with multiple -std options 2023-09-15 21:57:38 +01:00
Makefile.in libstdc++: Add support for running tests with multiple -std options 2023-09-15 21:57:38 +01:00