llvm-project/libcxx/test/std/utilities/time
Tiago Macarios eaadc45156 [libc++] Fix chrono::duration constructor constraint
As per [time.duration.cons]/1, the constructor constraint should be on
const Rep2&. As it is now the code will fail to compile in certain
cases, for example (https://godbolt.org/z/c7fPrcTYM):

     struct S{
          operator int() const&& noexcept = delete;
          operator int() const& noexcept;
     };

     const S &fun();

     auto k = std::chrono::microseconds{fun()};

Differential Revision: https://reviews.llvm.org/D118902
2022-02-03 18:07:12 -05:00
..
time.cal [libcxx] chrono::month_weekday should not be default constructible 2022-01-20 11:47:56 -08:00
time.clock [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
time.clock.req Support tests in freestanding 2019-02-04 20:31:13 +00:00
time.duration [libc++] Fix chrono::duration constructor constraint 2022-02-03 18:07:12 -05:00
time.hms [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
time.point [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
time.traits [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
clock.h [libc++] NFC: Normalize `#endif //` comment indentation 2021-04-20 12:03:32 -04:00
days.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
hours.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
microseconds.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
milliseconds.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
minutes.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
months.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
nanoseconds.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
rep.h [libc++] NFC: Normalize `#endif //` comment indentation 2021-04-20 12:03:32 -04:00
seconds.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
weeks.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00
years.pass.cpp [libc++] Modularize <chrono> 2022-01-14 09:55:29 -05:00