@@ -2037,9 +2037,7 @@ TEST(format_test, unpacked_args) {
20372037}
20382038
20392039constexpr char with_null[3 ] = {' {' , ' }' , ' \0 ' };
2040- constexpr char no_null[2 ] = {' {' , ' }' };
20412040static constexpr char static_with_null[3 ] = {' {' , ' }' , ' \0 ' };
2042- static constexpr char static_no_null[2 ] = {' {' , ' }' };
20432041
20442042TEST (format_test, compile_time_string) {
20452043 EXPECT_EQ (fmt::format (FMT_STRING (" foo" )), " foo" );
@@ -2056,17 +2054,13 @@ TEST(format_test, compile_time_string) {
20562054#endif
20572055
20582056 (void )static_with_null;
2059- (void )static_no_null;
20602057#ifndef _MSC_VER
20612058 EXPECT_EQ (fmt::format (FMT_STRING (static_with_null), 42 ), " 42" );
2062- EXPECT_EQ (fmt::format (FMT_STRING (static_no_null), 42 ), " 42" );
20632059#endif
20642060
20652061 (void )with_null;
2066- (void )no_null;
20672062#if FMT_CPLUSPLUS >= 201703L
20682063 EXPECT_EQ (fmt::format (FMT_STRING (with_null), 42 ), " 42" );
2069- EXPECT_EQ (fmt::format (FMT_STRING (no_null), 42 ), " 42" );
20702064#endif
20712065#if defined(FMT_USE_STRING_VIEW) && FMT_CPLUSPLUS >= 201703L
20722066 EXPECT_EQ (fmt::format (FMT_STRING (std::string_view (" {}" )), 42 ), " 42" );
0 commit comments