diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2010-10-09 00:27:47 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2010-10-09 00:27:47 +0000 |
| commit | a6bde81bc8812c68518f4a828e36992944d01f60 (patch) | |
| tree | 1d91e1a06924f7ad5a1f0da6b943ce19665076fe /clang/test/Lexer | |
| parent | f9f78e3aaefac219ef67317ab021ebc61f5947a7 (diff) | |
| download | bcm5719-llvm-a6bde81bc8812c68518f4a828e36992944d01f60.tar.gz bcm5719-llvm-a6bde81bc8812c68518f4a828e36992944d01f60.zip | |
Add support for UCNs for character literals
llvm-svn: 116129
Diffstat (limited to 'clang/test/Lexer')
| -rw-r--r-- | clang/test/Lexer/c90.c | 1 | ||||
| -rw-r--r-- | clang/test/Lexer/wchar.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Lexer/c90.c b/clang/test/Lexer/c90.c index f74135542c4..d91057257df 100644 --- a/clang/test/Lexer/c90.c +++ b/clang/test/Lexer/c90.c @@ -30,4 +30,5 @@ void test2() { void test3() { (void)L"\u1234"; // expected-error {{unicode escape sequences are only valid in C99 or C++}} + (void)L'\u1234'; // expected-error {{unicode escape sequences are only valid in C99 or C++}} } diff --git a/clang/test/Lexer/wchar.c b/clang/test/Lexer/wchar.c index cbc0c455f82..ac82c1f73b4 100644 --- a/clang/test/Lexer/wchar.c +++ b/clang/test/Lexer/wchar.c @@ -2,5 +2,11 @@ void f() { (void)L"\U00010000"; // expected-warning {{character unicode escape sequence too long for its type}} + + (void)L'\U00010000'; // expected-warning {{character unicode escape sequence too long for its type}} + + (void)L'ab'; // expected-warning {{extraneous characters in wide character constant ignored}} + + (void)L'a\u1000'; // expected-warning {{extraneous characters in wide character constant ignored}} } |

