Detect user-defined literal templates
This commit is contained in:
@@ -1812,3 +1812,9 @@ TEST(FormatTest, ConstexprParseFormatString) {
|
||||
static_assert(parse_string("{foo}"), "");
|
||||
static_assert(parse_string("{:}"), "");
|
||||
}
|
||||
|
||||
#if FMT_UDL_TEMPLATE
|
||||
TEST(FormatTest, UdlTemplate) {
|
||||
EXPECT_EQ("foo", "foo"_format());
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user