libstdc++: Add some C++20 additions to <chrono>
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Mar 2020 14:00:12 +0000 (14:00 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 Mar 2020 14:00:12 +0000 (14:00 +0000)
commit16948c54b7576fb4b27c59915eac71a0c6bf94f6
tree2f18be4c5769dc5471c942a31930a7483f863af5
parente519d644999d04e0a341cb034f4d954963b1d2d2
libstdc++: Add some C++20 additions to <chrono>

* include/std/chrono (chrono::days, chrono::weeks, chrono::years)
(chrono::months, chrono::sys_days, chrono::local_t)
(chrono::local_time, chrono::local_seconds, chrono::local_days):
Define for C++20.
(chrono::time_point): Add missing static assert.
* testsuite/20_util/time_point/requirements/duration_neg.cc: New test.
* testsuite/std/time/clock/file/overview.cc: New test.
* testsuite/std/time/clock/file/members.cc: New test.
* testsuite/std/time/syn_c++20.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/chrono
libstdc++-v3/testsuite/20_util/time_point/requirements/duration_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/std/time/clock/file/members.cc [new file with mode: 0644]
libstdc++-v3/testsuite/std/time/clock/file/overview.cc [new file with mode: 0644]
libstdc++-v3/testsuite/std/time/syn_c++20.cc [new file with mode: 0644]
libstdc++-v3/testsuite/std/time/traits/is_clock.cc