[libc] Fix deprecated operator"" syntax (#123259)

This commit is contained in:
Roland McGrath 2025-01-16 19:21:17 -08:00 committed by GitHub
parent 906cbbbd3c
commit 421fc04748
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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};