blob: 1fb558e7ac6f73bdb2e84e21062d10c0415f4403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
#include <format>
struct O {
using difference_type = std::ranges::__detail::__max_diff_type;
O& operator=(const char&);
O& operator*();
O& operator++();
O& operator++(int);
};
auto str = std::format_to_n(O{}, 4, "{}", " "); // PR libstdc++/107871
|