[libc-commits] [libc] [libc] Support C23 'b' (binary) modifier in printf (PR #80851)

Artem Tyurin via libc-commits libc-commits at lists.llvm.org
Wed Feb 7 09:59:52 PST 2024


================
@@ -533,6 +642,10 @@ TEST(LlvmLibcSPrintfTest, OctConv) {
   EXPECT_EQ(written, 3);
   ASSERT_STREQ(buff, "135");
 
+  written = LIBC_NAMESPACE::sprintf(buff, "%3b", 0b111);
----------------
agentcooper wrote:

Ah, good catch. Made it early in the morning. 😅 I've pushed an update.

https://github.com/llvm/llvm-project/pull/80851


More information about the libc-commits mailing list