summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/wrong-encoding.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-09-08 07:16:20 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-09-08 07:16:20 +0000
commit639b8d05dd2432f0609774f7963b5780dd5366e1 (patch)
treede4121f4117db133f5da18d62912166d624fa12e /clang/test/Misc/wrong-encoding.c
parent3e41a5bb3176c2163f1646f313e91c9674658e77 (diff)
downloadbcm5719-llvm-639b8d05dd2432f0609774f7963b5780dd5366e1.tar.gz
bcm5719-llvm-639b8d05dd2432f0609774f7963b5780dd5366e1.zip
When a bad UTF-8 encoding or bogus escape sequence is encountered in a
string literal, produce a diagnostic pointing at the erroneous character range, not at the start of the literal. llvm-svn: 163459
Diffstat (limited to 'clang/test/Misc/wrong-encoding.c')
-rw-r--r--clang/test/Misc/wrong-encoding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Misc/wrong-encoding.c b/clang/test/Misc/wrong-encoding.c
index bd1cf3dc02a..476c783c24e 100644
--- a/clang/test/Misc/wrong-encoding.c
+++ b/clang/test/Misc/wrong-encoding.c
@@ -4,12 +4,12 @@ void foo() {
"§Ã"; // ø
// CHECK: {{^ "<A7><C3>"; // <F8>}}
-// CHECK: {{^ \^}}
+// CHECK: {{^ \^~~~}}
/* þ« */ const char *d = "¥";
// CHECK: {{^ /\* <FE><AB> \*/ const char \*d = "<A5>";}}
-// CHECK: {{^ \^}}
+// CHECK: {{^ \^~~~}}
// CHECK: {{^ "<A7><C3>"; // <F8>}}
// CHECK: {{^ \^~~~~~~~~~}}
OpenPOWER on IntegriCloud