| 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 | |
| 12 | // struct last_spec { |
| 13 | // explicit last_spec() = default; |
| 14 | // }; |
| 15 | // |
| 16 | // inline constexpr last_spec last{}; |
| 17 | |
| 18 | #include <chrono> |
| 19 | #include <type_traits> |
| 20 | #include <cassert> |
| 21 | |
| 22 | #include "test_macros.h" |
| 23 | |
| 24 | int main(int, char**) |
| 25 | { |
| 26 | using last_spec = std::chrono::last_spec; |
| 27 | |
| 28 | ASSERT_SAME_TYPE(const last_spec, decltype(std::chrono::last)); |
| 29 | |
| 30 | static_assert(std::is_trivially_copyable_v<last_spec>, "" ); |
| 31 | static_assert(std::is_standard_layout_v<last_spec>, "" ); |
| 32 | |
| 33 | return 0; |
| 34 | } |
| 35 | |