diff options
Diffstat (limited to 'test/Lexer/char-literal.cpp')
-rw-r--r-- | test/Lexer/char-literal.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Lexer/char-literal.cpp b/test/Lexer/char-literal.cpp index 5dc5360..8556d46 100644 --- a/test/Lexer/char-literal.cpp +++ b/test/Lexer/char-literal.cpp @@ -22,3 +22,6 @@ char m = '👿'; // expected-error {{character too large for enclosing character char32_t n = U'ab'; // expected-error {{Unicode character literals may not contain multiple characters}} char16_t o = '👽'; // expected-error {{character too large for enclosing character literal type}} + +char16_t p[2] = u"\U0000FFFF"; +char16_t q[2] = u"\U00010000"; // expected-error {{too long}} |