diff --git a/test_conformance/printf/util_printf.cpp b/test_conformance/printf/util_printf.cpp index ca260573bb..29b7f8dc04 100644 --- a/test_conformance/printf/util_printf.cpp +++ b/test_conformance/printf/util_printf.cpp @@ -724,6 +724,12 @@ std::vector printStringGenParameters = { { {"%s"}, "\"%%\"" }, + { {"%s"}, "\"foo%%bar%%bar%%foo\"" }, + + { {"%%%s%%"}, "\"foo\"" }, + + { {"%%s%s"}, "\"foo\"" }, + // special symbols // nested @@ -764,6 +770,12 @@ std::vector correctBufferString = { "%%", + "foo%%bar%%bar%%foo", + + "%foo%", + + "%sfoo", + "\"%%\"", "\'%%\'", @@ -819,6 +831,8 @@ std::vector printFormatStringGenParameters = { { {"\'%%\'"} }, + { {"\'foo%%bar%%bar%%foo\'"} }, + // tabs { {"foo\\t\\t\\tfoo"} }, @@ -849,6 +863,8 @@ std::vector correctBufferFormatString = { "\'%\'", + "\'foo%bar%bar%foo\'", + "foo\t\t\tfoo", R"(foo