diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-07-16 22:18:33 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-07-16 22:18:33 +0000 |
commit | b04a45720ba0cbc4bdb08aebceefa184e22f8a93 (patch) | |
tree | e89909b16cd97b6d373f7533f3c2999a67fa8879 | |
parent | beef1cb6ebfaea4542fb6d6686caae27787a75e0 (diff) |
Weaken Unicode fixit test to work even if the character is printed escaped.
This should fix the failure on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160324 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/FixIt/fixit-unicode.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/FixIt/fixit-unicode.c b/test/FixIt/fixit-unicode.c index fdacfd0a08..2af5e08faa 100644 --- a/test/FixIt/fixit-unicode.c +++ b/test/FixIt/fixit-unicode.c @@ -1,6 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -strict-whitespace %s // RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck -check-prefix=CHECK-MACHINE %s -// XFAIL: win32 struct Foo { int bar; @@ -24,9 +23,11 @@ void test2() { printf("∆: %d", 1L); // CHECK: warning: format specifies type 'int' but the argument has type 'long' // Don't crash emitting a fixit after the delta. -// CHECK-NEXT: printf("∆: %d", 1L); -// CHECK-NEXT: {{^ ~~ \^~}} -// CHECK-NEXT: {{^ %ld}} +// CHECK: printf(" +// CHECK: : %d", 1L); +// Unfortunately, we can't actually check the location of the printed fixit, +// because different systems will render the delta differently (either as a +// character, or as <U+2206>.) The fixit should line up with the %d regardless. // CHECK-MACHINE: fix-it:"{{.*}}fixit-unicode.c":{23:16-23:18}:"%ld" } |