// { dg-do run { target c++20 } } // { dg-require-effective-target cxx11_abi } #include #include using namespace std::chrono; static_assert( std::is_empty_v> ); static_assert(std::is_default_constructible_v>); // The primary template is a complete type, it just has no members. static_assert( std::is_empty_v> ); static_assert(std::is_default_constructible_v>); static_assert( std::is_empty_v> ); static_assert(std::is_default_constructible_v>); void test_default_zone() { auto p = zoned_traits::default_zone(); static_assert( std::is_same_v ); VERIFY( p == locate_zone("UTC") ); } void test_locate_zone() { auto p = zoned_traits::locate_zone("GMT"); static_assert( std::is_same_v ); VERIFY( p == locate_zone("GMT") ); } int main() { test_default_zone(); test_locate_zone(); }