aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/utf8-char-literal.cpp
diff options
context:
space:
mode:
authorSeth Cantrell <seth.cantrell@gmail.com>2012-01-18 12:27:10 +0000
committerSeth Cantrell <seth.cantrell@gmail.com>2012-01-18 12:27:10 +0000
commit7748cbc97ff9c6c3940549d30965a10b47a45ee8 (patch)
tree6221bd3972fa668a58b31ec1e8470e65a63f3ce7 /test/Lexer/utf8-char-literal.cpp
parent5393e213f1d86a64e8e6b549c0ef76f9286ce279 (diff)
Add and update tests for character literals
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/utf8-char-literal.cpp')
-rw-r--r--test/Lexer/utf8-char-literal.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Lexer/utf8-char-literal.cpp b/test/Lexer/utf8-char-literal.cpp
index c4ea5fc3c3..12b001e4b4 100644
--- a/test/Lexer/utf8-char-literal.cpp
+++ b/test/Lexer/utf8-char-literal.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -fsyntax-only -verify %s
-int array0[u'ñ' == u'\xf1'? 1 : -1];
-int array1['ñ' != u'\xf1'? 1 : -1];
+int array0[u'ñ' == u'\xf1'? 1 : -1];
+int array1['\xF1' != u'\xf1'? 1 : -1];
+int array1['ñ' != u'\xf1'? 1 : -1]; // expected-error {{character too large for enclosing character literal type}}