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