]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/std/utilities/time/time.cal/time.cal.year/types.pass.cpp
Vendor import of libc++ trunk r351319 (just before the release_80
[FreeBSD/FreeBSD.git] / test / std / utilities / time / time.cal / time.cal.year / types.pass.cpp
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
10
11 // <chrono>
12 // class year;
13
14 #include <chrono>
15 #include <type_traits>
16 #include <cassert>
17
18 #include "test_macros.h"
19
20 int main()
21 {
22     using year = std::chrono::year;
23
24     static_assert(std::is_trivially_copyable_v<year>, "");
25     static_assert(std::is_standard_layout_v<year>, "");
26 }