Detect user-defined literal templates
This commit is contained in:
1 parent
a7e986166a
commit
8ca6e76dbc
2 files changed
+35
No files matched your search
@@ -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