Fariborz Jahanian | 4b6df3f | 2007-10-04 00:22:33 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | |
Fariborz Jahanian | 00ae8d5 | 2007-09-28 17:40:07 +0000 | [diff] [blame] | 3 | @protocol P1 |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 4 | - (void) P1proto; |
| 5 | + (void) ClsP1Proto; |
Fariborz Jahanian | 00ae8d5 | 2007-09-28 17:40:07 +0000 | [diff] [blame] | 6 | - (void) DefP1proto; |
| 7 | @end |
| 8 | @protocol P2 |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 9 | - (void) P2proto; |
| 10 | + (void) ClsP2Proto; |
Fariborz Jahanian | 00ae8d5 | 2007-09-28 17:40:07 +0000 | [diff] [blame] | 11 | @end |
| 12 | |
| 13 | @protocol P3<P2> |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 14 | - (void) P3proto; |
| 15 | + (void) ClsP3Proto; |
Fariborz Jahanian | 00ae8d5 | 2007-09-28 17:40:07 +0000 | [diff] [blame] | 16 | + (void) DefClsP3Proto; |
| 17 | @end |
| 18 | |
| 19 | @protocol PROTO<P1, P3> |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 20 | - (void) meth; |
| 21 | - (void) meth : (int) arg1; |
| 22 | + (void) cls_meth : (int) arg1; |
Fariborz Jahanian | 00ae8d5 | 2007-09-28 17:40:07 +0000 | [diff] [blame] | 23 | @end |
| 24 | |
| 25 | @interface INTF <PROTO> |
| 26 | @end |
| 27 | |
Steve Naroff | efe7f36 | 2008-02-08 22:06:17 +0000 | [diff] [blame] | 28 | @implementation INTF // expected-warning {{incomplete implementation}} \ |
| 29 | expected-warning {{method definition for 'meth' not found}} \ |
| 30 | expected-warning {{method definition for 'meth:' not found}} \ |
| 31 | expected-warning {{method definition for 'cls_meth:' not found}} \ |
| 32 | expected-warning {{method definition for 'P3proto' not found}} \ |
| 33 | expected-warning {{method definition for 'ClsP3Proto' not found}} \ |
| 34 | expected-warning {{method definition for 'P2proto' not found}} \ |
| 35 | expected-warning {{method definition for 'ClsP2Proto' not found}} \ |
| 36 | expected-warning {{method definition for 'ClsP1Proto' not found}} \ |
| 37 | expected-warning {{method definition for 'P1proto' not found}} |
Fariborz Jahanian | 00ae8d5 | 2007-09-28 17:40:07 +0000 | [diff] [blame] | 38 | - (void) DefP1proto{} |
| 39 | |
| 40 | + (void) DefClsP3Proto{} |
| 41 | |
Fariborz Jahanian | 4b6df3f | 2007-10-04 00:22:33 +0000 | [diff] [blame] | 42 | @end |