| 1 |
//===----------------------------------------------------------------------===// |
| 2 |
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 3 |
// See https://llvm.org/LICENSE.txt for license information. |
| 4 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 5 |
// |
| 6 |
//===----------------------------------------------------------------------===// |
| 7 |
|
| 8 |
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20 |
| 9 |
// UNSUPPORTED: no-filesystem |
| 10 |
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME |
| 11 |
|
| 12 |
// XFAIL: availability-fp_to_chars-missing |
| 13 |
|
| 14 |
// <print> |
| 15 |
|
| 16 |
// The Standard does indirectly require that <print> includes <format>. However |
| 17 |
// using the granularized headers so it's possible to implement <print> without |
| 18 |
// <format>. This would be a non-conforming implementation. |
| 19 |
// |
| 20 |
// See https://github.com/llvm/llvm-project/issues/71925 |
| 21 |
|
| 22 |
#include <print> |
| 23 |
#include <vector> |
| 24 |
|
| 25 |
void test() { |
| 26 |
std::vector<int> v{1, 2, 3}; |
| 27 |
std::print("{} {}", 42, v); |
| 28 |
} |