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