1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 - (int) garf; // expected-note {{previous declaration is here}}
6 + (int) cgarf; // expected-note {{previous declaration is here}}
11 - (void) garf; // expected-error {{duplicate declaration of method 'garf'}}
12 + (void) cgarf; // expected-error {{duplicate declaration of method 'cgarf'}}
19 __attribute__((objc_root_class)) @interface AppDelegate
20 + (void)someMethodWithArgument:(NSObject *)argument;
21 + (void)someMethodWithArgument:(NSObject *)argument : (NSObject*) argument2; // expected-note {{previous declaration is here}}
24 @interface AppDelegate ()
25 - (void)someMethodWithArgument:(float)argument; // OK. No warning to be issued here.
26 + (void)someMethodWithArgument:(float)argument : (float)argument2; // expected-error {{duplicate declaration of method 'someMethodWithArgument::'}}
29 __attribute__((objc_root_class))
31 -(void)meth; // expected-note {{declared here}}
38 @implementation Test // expected-warning {{method definition for 'meth' not found}}