Enable compile-time error tests

This commit is contained in:
Victor Zverovich
2020-04-22 11:00:20 -07:00
parent 450e8eed97
commit 811b0f9054
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -2470,7 +2470,7 @@ TEST(FormatTest, FormatStringErrors) {
EXPECT_ERROR_NOARGS("foo", nullptr);
EXPECT_ERROR_NOARGS("}", "unmatched '}' in format string");
EXPECT_ERROR("{0:s", "unknown format specifier", Date);
# if FMT_MSC_VER >= 1916
# if !FMT_MSC_VER || FMT_MSC_VER >= 1916
// This causes an internal compiler error in MSVC2017.
EXPECT_ERROR("{:{<}", "invalid fill character '{'", int);
EXPECT_ERROR("{:10000000000}", "number is too big", int);