[PATCH] D156237: Complete the implementation of P2361 Unevaluated string literals
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 9 15:20:20 PDT 2023
hubert.reinterpretcast added inline comments.
================
Comment at: clang/test/Parser/cxx0x-attributes.cpp:450-451
+namespace P2361 {
+[[deprecated(L"abc")]] void a(); // expected-error{{an unevaluated string literal cannot have an encoding prefix}}
+[[nodiscard("\123")]] int b(); // expected-error{{invalid escape sequence '\123' in an unevaluated string literal}}
+}
----------------
There should be corresponding C tests if, as the release notes text implies, the C behaviour changes (although, again, this direction has not been adopted by the C committee).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156237/new/
https://reviews.llvm.org/D156237
More information about the cfe-commits
mailing list