Files
llvm-project/clang/test/SemaObjC/DoubleMethod.m
Chris Lattner 89026888ef move all objc sema tests into a new SemaObjC directory. Next step is to
remove the objc- prefix from the tests that use it.

llvm-svn: 54084
2008-07-26 00:57:24 +00:00

20 lines
338 B
Objective-C

// 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;
}