[PATCH] D135366: [clang][Interp] Implement String- and CharacterLiterals
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 27 05:29:13 PDT 2022
aaron.ballman accepted this revision.
aaron.ballman added a comment.
LGTM aside from a testing request.
================
Comment at: clang/test/AST/Interp/literals.cpp:342
+ static_assert(mc == 'abc', "");
+ __WCHAR_TYPE__ wm = L'abc'; // ref-error{{wide character literals may not contain multiple characters}} \
+ // expected-error{{wide character literals may not contain multiple characters}}
----------------
I'd like to see the same test for `u`, `U`, and `u8` prefixes (which should all fail the same was as `L`).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135366/new/
https://reviews.llvm.org/D135366
More information about the cfe-commits
mailing list