Skip to content

Conversation

@frobtech
Copy link
Contributor

No description provided.

@frobtech frobtech requested a review from lntue January 17, 2025 00:12
@frobtech frobtech marked this pull request as ready for review January 17, 2025 00:12
@llvmbot llvmbot added the libc label Jan 17, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 17, 2025

@llvm/pr-subscribers-libc

Author: Roland McGrath (frobtech)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/123259.diff

1 Files Affected:

  • (modified) libc/test/src/unistd/getopt_test.cpp (+1-1)
diff --git a/libc/test/src/unistd/getopt_test.cpp b/libc/test/src/unistd/getopt_test.cpp
index 8217f7bb6e7313..1a31094e98fc89 100644
--- a/libc/test/src/unistd/getopt_test.cpp
+++ b/libc/test/src/unistd/getopt_test.cpp
@@ -79,7 +79,7 @@ struct LlvmLibcGetoptTest : public LIBC_NAMESPACE::testing::Test {
 
 // This is safe because getopt doesn't currently permute argv like GNU's getopt
 // does so this just helps silence warnings.
-char *operator"" _c(const char *c, size_t) { return const_cast<char *>(c); }
+char *operator""_c(const char *c, size_t) { return const_cast<char *>(c); }
 
 TEST_F(LlvmLibcGetoptTest, NoMatch) {
   array<char *, 3> argv{"prog"_c, "arg1"_c, nullptr};

@frobtech frobtech merged commit 421fc04 into llvm:main Jan 17, 2025
15 checks passed
@frobtech frobtech deleted the p/libc-operator-literal branch January 17, 2025 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants