diff options
Diffstat (limited to 'test/FixIt/fixit-objc.m')
-rw-r--r-- | test/FixIt/fixit-objc.m | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/FixIt/fixit-objc.m b/test/FixIt/fixit-objc.m index 7c4776ae71e7..f41f75f1d7be 100644 --- a/test/FixIt/fixit-objc.m +++ b/test/FixIt/fixit-objc.m @@ -18,22 +18,22 @@ void foo() { @class NSString; @interface Test -- (void)test:(NSString *)string; // expected-note{{passing argument to parameter 'string' here}} +- (void)test:(NSString *)string; @property (copy) NSString *property; @end -void g(NSString *a); // expected-note{{passing argument to parameter 'a' here}} -void h(id a); // expected-note 2{{passing argument to parameter 'a' here}} +void g(NSString *a); +void h(id a); void f(Test *t) { - NSString *a = "Foo"; // expected-warning {{string literal must be prefixed by '@'}} - id b = "Foo"; // expected-warning {{incompatible pointer types initializing 'id' with an expression of type 'char [4]'}} - g("Foo"); // expected-warning {{string literal must be prefixed by '@'}} - h("Foo"); // expected-warning{{incompatible pointer types passing 'char [4]' to parameter of type 'id'}} - h(("Foo")); // expected-warning{{incompatible pointer types passing 'char [4]' to parameter of type 'id'}} - [t test:"Foo"]; // expected-warning {{string literal must be prefixed by '@'}} - t.property = "Foo"; // expected-warning {{string literal must be prefixed by '@'}} + NSString *a = "Foo"; // expected-error {{string literal must be prefixed by '@'}} + id b = "Foo"; // expected-error {{string literal must be prefixed by '@'}} + g("Foo"); // expected-error {{string literal must be prefixed by '@'}} + h("Foo"); // expected-error {{string literal must be prefixed by '@'}} + h(("Foo")); // expected-error {{string literal must be prefixed by '@'}} + [t test:"Foo"]; // expected-error {{string literal must be prefixed by '@'}} + t.property = "Foo"; // expected-error {{string literal must be prefixed by '@'}} // <rdar://problem/6896493> [t test:@"Foo"]]; // expected-error{{extraneous ']' before ';'}} |