aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-07-12 08:34:31 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-07-12 08:34:31 +0000
commitc7bd9fbecd50c1fcdc1092e37023dbb8677d4eed (patch)
treea2ef5103b6c75bcaddb3795624f5975c1691adbe
parentaf082c3b163397c040c3a98c7a5f09ee2a0badef (diff)
Be lax about trailing whitespace when checking fixit formatting, this depends on locale settings.
If a non-unicode locale is used, the unicode character is escaped and any byte that is in the escaped representation but not the semicolon will become whitespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160113 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/FixIt/fixit-unicode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/FixIt/fixit-unicode.c b/test/FixIt/fixit-unicode.c
index 04d582e856..d8e4592336 100644
--- a/test/FixIt/fixit-unicode.c
+++ b/test/FixIt/fixit-unicode.c
@@ -10,6 +10,6 @@ void test1() {
(&foo)☃>bar = 42;
// CHECK: error: expected ';' after expression
// Make sure we emit the fixit right in front of the snowman.
-// CHECK: {{^ \^$}}
-// CHECK: {{^ ;$}}
+// CHECK: {{^ \^}}
+// CHECK: {{^ ;}}
}