[libc-commits] [libc] [libc] Fix unused variable in fputc test (PR #67830)
Mikhail R. Gadelha via libc-commits
libc-commits at lists.llvm.org
Fri Sep 29 09:26:42 PDT 2023
https://github.com/mikhailramalho created https://github.com/llvm/llvm-project/pull/67830
This is probably a copy-and-paste error and the variable 'more' was left unused.
>From 6bb7ab5ca98fcf3a4c9087df9968879061e3731a Mon Sep 17 00:00:00 2001
From: "Mikhail R. Gadelha" <mikhail at igalia.com>
Date: Fri, 29 Sep 2023 13:23:41 -0300
Subject: [PATCH] [libc] Fix unused variable in fputc test
This is probably a copy-and-paste error and the variable was left
unused.
---
libc/test/src/stdio/fputc_test.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/test/src/stdio/fputc_test.cpp b/libc/test/src/stdio/fputc_test.cpp
index 578403fc374b018..0a776f70e353ddd 100644
--- a/libc/test/src/stdio/fputc_test.cpp
+++ b/libc/test/src/stdio/fputc_test.cpp
@@ -22,7 +22,7 @@ TEST(LlvmLibcPutcTest, PrintOut) {
}
constexpr char more[] = "A simple string written to stderr\n";
- for (const char &c : simple) {
+ for (const char &c : more) {
result = LIBC_NAMESPACE::fputc(
c, reinterpret_cast<FILE *>(LIBC_NAMESPACE::stderr));
}
More information about the libc-commits
mailing list