1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
5 - (void) meth : (int) arg1;
6 - (int) int_meth; // expected-note {{method 'int_meth' declared here}}
7 + (int) cls_meth; // expected-note {{method 'cls_meth' declared here}}
8 + (void) cls_meth1 : (int) arg1; // expected-note {{method 'cls_meth1:' declared here}}
11 @implementation INTF // expected-warning {{method definition for 'int_meth' not found}} \
12 // expected-warning {{method definition for 'cls_meth' not found}} \
13 // expected-warning {{method definition for 'cls_meth1:' not found}}
15 - (void) meth : (int) arg2{}
16 - (void) cls_meth1 : (int) arg2{}
21 - (void) meth : (int) arg1;
22 - (int) int_meth; // expected-note {{method 'int_meth' declared here}}
23 + (int) cls_meth; // expected-note {{method 'cls_meth' declared here}}
24 + (void) cls_meth1 : (int) arg1; // expected-note {{method 'cls_meth1:' declared here}}
27 @implementation INTF1 // expected-warning {{method definition for 'int_meth' not found}} \
28 // expected-warning {{method definition for 'cls_meth' not found}} \
29 // expected-warning {{method definition for 'cls_meth1:' not found}}
31 - (void) meth : (int) arg2{}
32 - (void) cls_meth1 : (int) arg2{}
37 - (void) meth : (int) arg1;
38 - (void) cls_meth1 : (int) arg1;
43 - (void) meth : (int) arg2{}
44 - (void) cls_meth1 : (int) arg2{}
49 @interface Foo : Root @end
53 - (void)someFunction { return; }
55 + (void)anotherFunction {
56 [self someFunction]; // expected-warning {{method '+someFunction' not found (return type defaults to 'id')}}