summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/std/format/string_neg.cc
blob: acae88eaf712a1943b64150641947a111db3ce2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++20 } }

#include <format>

auto s = std::format(" {9} "); // { dg-error "call to consteval function" }
// { dg-error "invalid.arg.id" "" { target *-*-* } 0 }

struct X { };
std::format_string<X> str(""); // { dg-error "here" }
// { dg-error "std::formatter must be specialized" "" { target *-*-* } 0 }

// { dg-prune-output "use of deleted function" }