From: Anton Korobeynikov Date: Wed, 12 Nov 2014 22:58:08 +0000 (+0000) Subject: Now really fix the typo in the test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e0947a97b10a5165a7548c03afc928fe52a984c;p=clang Now really fix the typo in the test git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221825 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/FixIt/format-darwin.m b/test/FixIt/format-darwin.m index 52d562669f..1e07df7cad 100644 --- a/test/FixIt/format-darwin.m +++ b/test/FixIt/format-darwin.m @@ -83,12 +83,12 @@ void testParens(Foo *obj, struct Bar *record) { printf("%s", [obj getInteger]); // expected-warning{{values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}} printf("%s", obj.value); // expected-warning{{values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}} printf("%s", record->value); // expected-warning{{values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}} - printf("%s", (i ? i : i)); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}} + printf("%s", (i ? i : i)); // expected-warning{{format specifies type 'char *' but the argument has type 'long'}} printf("%s", *arr); // expected-warning{{values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}} // CHECK-NOT: fix-it:{{.*}}:")" - printf("%s", i ? i : i); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}} + printf("%s", i ? i : i); // expected-warning{{format specifies type 'char *' but the argument has type 'long'}} // CHECK: fix-it:"{{.*}}":{[[@LINE-2]]:11-[[@LINE-2]]:13}:"%ld" // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:16-[[@LINE-3]]:16}:"(long)("