1// RUN: %clang_cc1 -pedantic -verify %s 2// RUN: cp %s %t 3// RUN: not %clang_cc1 -pedantic -fobjc-arc -fixit -x objective-c %t 4// RUN: %clang_cc1 -pedantic -fobjc-arc -Werror -x objective-c %t 5// rdar://14106083 6 7@class A; 8@class NSString; 9 10@interface Test 11- (void)test:(NSString *)string; 12 13@property (copy) NSString *property; 14@end 15 16void g(NSString *a); 17void h(id a); 18 19void f(Test *t) { 20 NSString *a = "Foo"; // expected-error {{string literal must be prefixed by '@'}} 21 g("Foo"); // expected-error {{string literal must be prefixed by '@'}} 22 [t test:"Foo"]; // expected-error {{string literal must be prefixed by '@'}} 23 t.property = "Foo"; // expected-error {{string literal must be prefixed by '@'}} 24} 25