summaryrefslogtreecommitdiff
path: root/test/Lexer/c90.c
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2010-10-06 04:57:26 +0000
committerNico Weber <nicolasweber@gmx.de>2010-10-06 04:57:26 +0000
commita0f15b0848405ae16d63bd5d78c862a6526b338a (patch)
tree18d99dbf2ba33ef2b15b199145cb56802dbf86f5 /test/Lexer/c90.c
parentecb1b4c29ecc23c952901fbe85e590410b09d9d9 (diff)
downloadclang-a0f15b0848405ae16d63bd5d78c862a6526b338a.tar.gz
Add support for 4-byte UCNs like \U12345678. Warn about UCNs in c90 mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/c90.c')
-rw-r--r--test/Lexer/c90.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Lexer/c90.c b/test/Lexer/c90.c
index f191397102..f74135542c 100644
--- a/test/Lexer/c90.c
+++ b/test/Lexer/c90.c
@@ -27,3 +27,7 @@ void test2() {
"sdjflksdjf lksdjf skldfjsdkljflksdjf kldsjflkdsj fldks jflsdkjfds"
"sdjflksdjf lksdjf skldfjsdkljflksdjf kldsjflkdsj fldks jflsdkjfds";
}
+
+void test3() {
+ (void)L"\u1234"; // expected-error {{unicode escape sequences are only valid in C99 or C++}}
+}