Fariborz Jahanian | d0b0154 | 2007-09-27 18:57:03 +0000 | [diff] [blame^] | 1 | @interface INTF |
| 2 | - (void) meth; |
| 3 | - (void) meth : (int) arg1; |
| 4 | - (int) int_meth; // expected-warning {{method definition for 'int_meth' not found}} |
| 5 | + (int) cls_meth; // expected-warning {{method definition for 'cls_meth' not found}} |
| 6 | + (void) cls_meth1 : (int) arg1; // expected-warning {{method definition for 'cls_meth1:' not found}} |
| 7 | @end |
| 8 | |
| 9 | @implementation INTF |
| 10 | - (void) meth {} |
| 11 | - (void) meth : (int) arg2{} |
| 12 | - (void) cls_meth1 : (int) arg2{} |
| 13 | @end |
| 14 | |
| 15 | |
| 16 | @interface INTF1 |
| 17 | - (void) meth; |
| 18 | - (void) meth : (int) arg1; |
| 19 | - (int) int_meth; // expected-warning {{method definition for 'int_meth' not found}} |
| 20 | + (int) cls_meth; // expected-warning {{method definition for 'cls_meth' not found}} |
| 21 | + (void) cls_meth1 : (int) arg1; // expected-warning {{method definition for 'cls_meth1:' not found}} |
| 22 | @end |
| 23 | |
| 24 | @implementation INTF1 |
| 25 | - (void) meth {} |
| 26 | - (void) meth : (int) arg2{} |
| 27 | - (void) cls_meth1 : (int) arg2{} |
| 28 | @end |
| 29 | |
| 30 | |
| 31 | @interface INTF2 |
| 32 | - (void) meth; |
| 33 | - (void) meth : (int) arg1; |
| 34 | - (void) cls_meth1 : (int) arg1; |
| 35 | @end |
| 36 | |
| 37 | @implementation INTF2 |
| 38 | - (void) meth {} |
| 39 | - (void) meth : (int) arg2{} |
| 40 | - (void) cls_meth1 : (int) arg2{} |
| 41 | @end |
| 42 | |