blob: 70c7ed55f1e20fa91d1365a500ad4f76e4074268 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
@interface Subclass
{
int ivar;
}
- (void) method;
- (void) method;
@end
@implementation Subclass
- (void) method {;} // expected-error {{previous declaration is here}}
- (void) method {;} // expected-error {{duplicate declaration of method 'method'}}
@end
int main (void) {
return 0;
}