30 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// REQUIRES: std-at-least-c++2310// UNSUPPORTED: no-filesystem11// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME12 13// XFAIL: availability-fp_to_chars-missing14 15// <print>16 17// The Standard does indirectly require that <print> includes <format>. However18// using the granularized headers so it's possible to implement <print> without19// <format>. This would be a non-conforming implementation.20//21// See https://llvm.org/PR7192522 23#include <print>24#include <vector>25 26void test() {27 std::vector<int> v{1, 2, 3};28 std::print("{} {}", 42, v);29}30