1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // UNSUPPORTED: c++03, c++11, c++14, c++17 9 10 // <chrono> 11 // class year_month_day; 12 13 #include <chrono> 14 #include <type_traits> 15 #include <cassert> 16 17 #include "test_macros.h" 18 main(int,char **)19int main(int, char**) 20 { 21 using year_month_day = std::chrono::year_month_day; 22 23 static_assert(std::is_trivially_copyable_v<year_month_day>, ""); 24 static_assert(std::is_standard_layout_v<year_month_day>, ""); 25 26 return 0; 27 } 28