1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc@interface Foo 4*f4a2713aSLionel Sambuc- (int) garf; // expected-note {{previous declaration is here}} 5*f4a2713aSLionel Sambuc- (int) OK; 6*f4a2713aSLionel Sambuc+ (int) cgarf; // expected-note {{previous declaration is here}} 7*f4a2713aSLionel Sambuc- (int) InstMeth; 8*f4a2713aSLionel Sambuc@end 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc@interface Foo() 11*f4a2713aSLionel Sambuc- (void) garf; // expected-error {{duplicate declaration of method 'garf'}} 12*f4a2713aSLionel Sambuc+ (void) cgarf; // expected-error {{duplicate declaration of method 'cgarf'}} 13*f4a2713aSLionel Sambuc+ (int) InstMeth; 14*f4a2713aSLionel Sambuc- (int) OK; 15*f4a2713aSLionel Sambuc@end 16