| // RUN: %clang_cc1 -fsyntax-only -verify %s |
| - (int) garf; // expected-note {{previous declaration is here}} |
| + (int) cgarf; // expected-note {{previous declaration is here}} |
| - (void) garf; // expected-error {{duplicate declaration of method 'garf'}} |
| + (void) cgarf; // expected-error {{duplicate declaration of method 'cgarf'}} |
| __attribute__((objc_root_class)) @interface AppDelegate |
| + (void)someMethodWithArgument:(NSObject *)argument; |
| + (void)someMethodWithArgument:(NSObject *)argument : (NSObject*) argument2; // expected-note {{previous declaration is here}} |
| @interface AppDelegate () |
| - (void)someMethodWithArgument:(float)argument; // OK. No warning to be issued here. |
| + (void)someMethodWithArgument:(float)argument : (float)argument2; // expected-error {{duplicate declaration of method 'someMethodWithArgument::'}} |
| __attribute__((objc_root_class)) |
| -(void)meth; // expected-note {{declared here}} |
| @implementation Test // expected-warning {{method definition for 'meth' not found}} |