Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Fariborz Jahanian | 4b6df3f | 2007-10-04 00:22:33 +0000 | [diff] [blame] | 2 | |
Fariborz Jahanian | d0b0154 | 2007-09-27 18:57:03 +0000 | [diff] [blame] | 3 | @interface INTF |
| 4 | - (void) meth; |
| 5 | - (void) meth : (int) arg1; |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 6 | - (int) int_meth; |
| 7 | + (int) cls_meth; |
| 8 | + (void) cls_meth1 : (int) arg1; |
Fariborz Jahanian | d0b0154 | 2007-09-27 18:57:03 +0000 | [diff] [blame] | 9 | @end |
| 10 | |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 11 | @implementation INTF // expected-warning {{incomplete implementation}} expected-warning {{method definition for 'int_meth' not found}} expected-warning {{method definition for 'cls_meth' not found}} expected-warning {{method definition for 'cls_meth1:' not found}} |
Fariborz Jahanian | d0b0154 | 2007-09-27 18:57:03 +0000 | [diff] [blame] | 12 | - (void) meth {} |
| 13 | - (void) meth : (int) arg2{} |
| 14 | - (void) cls_meth1 : (int) arg2{} |
Fariborz Jahanian | 4b6df3f | 2007-10-04 00:22:33 +0000 | [diff] [blame] | 15 | @end |
Fariborz Jahanian | d0b0154 | 2007-09-27 18:57:03 +0000 | [diff] [blame] | 16 | |
| 17 | @interface INTF1 |
| 18 | - (void) meth; |
| 19 | - (void) meth : (int) arg1; |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 20 | - (int) int_meth; |
| 21 | + (int) cls_meth; |
| 22 | + (void) cls_meth1 : (int) arg1; |
Fariborz Jahanian | d0b0154 | 2007-09-27 18:57:03 +0000 | [diff] [blame] | 23 | @end |
| 24 | |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 25 | @implementation INTF1 // expected-warning {{incomplete implementation}} expected-warning {{method definition for 'int_meth' not found}} expected-warning {{method definition for 'cls_meth' not found}} expected-warning {{method definition for 'cls_meth1:' not found}} |
Fariborz Jahanian | d0b0154 | 2007-09-27 18:57:03 +0000 | [diff] [blame] | 26 | - (void) meth {} |
| 27 | - (void) meth : (int) arg2{} |
| 28 | - (void) cls_meth1 : (int) arg2{} |
Fariborz Jahanian | 4b6df3f | 2007-10-04 00:22:33 +0000 | [diff] [blame] | 29 | @end |
Fariborz Jahanian | d0b0154 | 2007-09-27 18:57:03 +0000 | [diff] [blame] | 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 | |