Skip to content

Commit 421fc04

Browse files
authored
[libc] Fix deprecated operator"" syntax (llvm#123259)
1 parent 906cbbb commit 421fc04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/unistd/getopt_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct LlvmLibcGetoptTest : public LIBC_NAMESPACE::testing::Test {
7979

8080
// This is safe because getopt doesn't currently permute argv like GNU's getopt
8181
// does so this just helps silence warnings.
82-
char *operator"" _c(const char *c, size_t) { return const_cast<char *>(c); }
82+
char *operator""_c(const char *c, size_t) { return const_cast<char *>(c); }
8383

8484
TEST_F(LlvmLibcGetoptTest, NoMatch) {
8585
array<char *, 3> argv{"prog"_c, "arg1"_c, nullptr};

0 commit comments

Comments
 (0)