mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 22:06:06 +00:00
[libc] Fix deprecated operator"" syntax (#123259)
This commit is contained in:
parent
906cbbbd3c
commit
421fc04748
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user