blob: 692ff8c68a0a4c414680bc40f5de4f69a52deb45 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanianb7f95f52009-03-02 19:05:07 +00002
3@interface Foo
Richard Trieu2fe9b7f2011-12-15 00:38:15 +00004- (int) garf; // expected-note {{previous declaration is here}}
Fariborz Jahanianb7f95f52009-03-02 19:05:07 +00005- (int) OK;
Richard Trieu2fe9b7f2011-12-15 00:38:15 +00006+ (int) cgarf; // expected-note {{previous declaration is here}}
Fariborz Jahanianb7f95f52009-03-02 19:05:07 +00007- (int) InstMeth;
8@end
9
10@interface Foo()
11- (void) garf; // expected-error {{duplicate declaration of method 'garf'}}
12+ (void) cgarf; // expected-error {{duplicate declaration of method 'cgarf'}}
13+ (int) InstMeth;
14- (int) OK;
15@end