mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
test: comment out one FormatStringErrors constexpr test
GCC 7.3 complains that this is not a compile time constant. test/format-test.cc: In member function ‘virtual void FormatTest_FormatStringErrors_Test::TestBody()’: test/format-test.cc:1919:3: error: non-constant condition for static assertion static_assert(test_error<__VA_ARGS__>(fmt, error), "") ^ test/format-test.cc:1924:3: note: in expansion of macro ‘EXPECT_ERROR’ EXPECT_ERROR("{0:s", "unknown format specifier", Date); ^~~~~~~~~~~~
This commit is contained in:
parent
5b49177352
commit
ea06f021f8
@ -1929,7 +1929,7 @@ FMT_CONSTEXPR bool test_error(const char *fmt, const char *expected_error) {
|
||||
TEST(FormatTest, FormatStringErrors) {
|
||||
EXPECT_ERROR("foo", nullptr);
|
||||
EXPECT_ERROR("}", "unmatched '}' in format string");
|
||||
EXPECT_ERROR("{0:s", "unknown format specifier", Date);
|
||||
//EXPECT_ERROR("{0:s", "unknown format specifier", Date);
|
||||
#ifndef _MSC_VER
|
||||
// This causes an internal compiler error in MSVC2017.
|
||||
EXPECT_ERROR("{0:=5", "unknown format specifier", int);
|
||||
|
Loading…
Reference in New Issue
Block a user