Check pointer type specs are compile time

This commit is contained in:
Victor Zverovich
2017-11-23 10:12:23 -08:00
parent c8a9d902dd
commit b25a029284
4 changed files with 16 additions and 29 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ TEST(PrintfTest, Width) {
// Width cannot be specified twice.
EXPECT_THROW_MSG(fmt::sprintf("%5-5d", 42), format_error,
"unknown format code '-' for integer");
"invalid type specifier");
EXPECT_THROW_MSG(fmt::sprintf(format("%{}d", BIG_NUM), 42),
format_error, "number is too big");