| 1 |
// { dg-do compile { target c++20 } } |
| 2 |
// { dg-require-effective-target cxx11_abi } |
| 3 |
|
| 4 |
#include <chrono> |
| 5 |
|
| 6 |
using std::chrono::time_zone; |
| 7 |
|
| 8 |
static_assert( std::is_move_constructible_v<time_zone> ); |
| 9 |
static_assert( std::is_move_assignable_v<time_zone> ); |
| 10 |
|
| 11 |
static_assert( ! std::is_default_constructible_v<time_zone> ); |
| 12 |
static_assert( ! std::is_copy_constructible_v<time_zone> ); |
| 13 |
static_assert( ! std::is_copy_assignable_v<time_zone> ); |
| 14 |
|
| 15 |
extern const time_zone* tz; |
| 16 |
|
| 17 |
static_assert( std::is_same_v<decltype(tz->name()), std::string_view> ); |
| 18 |
static_assert( noexcept(tz->name()) ); |
| 19 |
|
| 20 |
static_assert( std::is_same_v<decltype(*tz == *tz), bool> ); |
| 21 |
static_assert( noexcept(*tz == *tz) ); |
| 22 |
|
| 23 |
static_assert( std::is_same_v<decltype(*tz <=> *tz), std::strong_ordering> ); |
| 24 |
static_assert( noexcept(*tz <=> *tz) ); |