summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-10-30 23:22:22 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-10-30 23:22:22 +0000
commita0613170b41e78692711f7fc5528b85386a88ffc (patch)
tree8196d698597fe654e3d1fd9800f7077b28c85cc7 /clang/test
parent2a523d864d387f11430bd6a6354ef14b9f4fd8b6 (diff)
downloadbcm5719-llvm-a0613170b41e78692711f7fc5528b85386a88ffc.tar.gz
bcm5719-llvm-a0613170b41e78692711f7fc5528b85386a88ffc.zip
Handle string encoding diagnostics when there are too many invalid ranges.
llvm-svn: 167059
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Misc/wrong-encoding.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Misc/wrong-encoding.c b/clang/test/Misc/wrong-encoding.c
index db37af9d2b8..1f186b7939b 100644
--- a/clang/test/Misc/wrong-encoding.c
+++ b/clang/test/Misc/wrong-encoding.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value %s 2>&1 | FileCheck -strict-whitespace %s
+// REQUIRES: asserts
void foo() {
@@ -30,4 +31,7 @@ void foo() {
"xxé¿xxxxxxxxxxxxxxxxxxxxxé¿xx";
// CHECK: {{^ "xx<E9><BF>xxxxxxxxxxxxxxxxxxxxx<E9><BF>xx";}}
// CHECK: {{^ \^~~~~~~~ ~~~~~~~~}}
+
+ "xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿x";
}
+// CHECK-NOT:Assertion
OpenPOWER on IntegriCloud