blob: 07e89120fb87b535cb2e96e120e7427ad38d4f08 [file] [log] [blame]
Fariborz Jahanian3e7fd152007-10-16 21:52:23 +00001// RUN: clang -fsyntax-only -verify %s
2
3@interface Subclass
4{
5 int ivar;
6}
7
8- (void) method;
9- (void) method;
10@end
11
12@implementation Subclass
Chris Lattner5f4a6822008-11-23 23:12:31 +000013- (void) method {;} // expected-note {{previous declaration is here}}
Fariborz Jahanian3e7fd152007-10-16 21:52:23 +000014- (void) method {;} // expected-error {{duplicate declaration of method 'method'}}
15@end
16
17int main (void) {
18 return 0;
19}