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 // REQUIRES: std-at-least-c++23 10 // UNSUPPORTED: no-filesystem 11 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME 12 13 // XFAIL: availability-fp_to_chars-missing 14 15 // <print> 16 17 // The Standard does indirectly require that <print> includes <format>. However 18 // using the granularized headers so it's possible to implement <print> without 19 // <format>. This would be a non-conforming implementation. 20 // 21 // See https://github.com/llvm/llvm-project/issues/71925 22 23 #include <print> 24 #include <vector> 25 26 void test() { 27 std::vector<int> v{1, 2, 3}; 28 std::print("{} {}", 42, v); 29 } 30