xref: /llvm-project/libcxx/test/std/utilities/format/format.arguments/format.args/types.compile.pass.cpp (revision 6a54dfbfe534276d644d7f9c027f0deeb748dd53)
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 
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
10 
11 // <format>
12 
13 // Namespace std typedefs:
14 // using format_args = basic_format_args<format_context>;
15 // using wformat_args = basic_format_args<wformat_context>;
16 
17 #include <format>
18 #include <vector>
19 #include <type_traits>
20 
21 #include "test_macros.h"
22 
23 static_assert(std::is_same_v<std::format_args,
24                              std::basic_format_args<std::format_context>>);
25 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
26 static_assert(std::is_same_v<std::wformat_args,
27                              std::basic_format_args<std::wformat_context>>);
28 #endif
29