]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Test for formatting with empty spec for time points.
authorTomasz Kamiński <tkaminsk@redhat.com>
Tue, 3 Jun 2025 09:40:17 +0000 (11:40 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Wed, 4 Jun 2025 14:58:00 +0000 (16:58 +0200)
commit3cfa53aa95a19c3b5fc711ad4d9f39ec9b8e7c3f
treebec8fa6626cf7c36f2b43d623b4227bf1500a4f7
parent6545e2f301cc1c276dd039e8739f7cc912ec5ae9
libstdc++: Test for formatting with empty spec for time points.

Adding a tests for behavior of the ostream operator and the formatting
with empty chrono-spec for the chrono types. Current coverage is:
 * time point, zoned_time and local_time_format in this commit,
 * duration and hh_mm_ss in r16-1099-gac0a04b7a254fb,
 * calendar types in r16-1016-g28a17985dd34b7.

libstdc++-v3/ChangeLog:

* testsuite/std/time/format/empty_spec.cc: New tests.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Tomasz Kamiński <tkaminsk@redhat.com>
libstdc++-v3/testsuite/std/time/format/empty_spec.cc