blob: 29faa7d840c0cafe046206609dc5138aec14ef00 [file] [log] [blame]
Fariborz Jahanian1e4e82f2007-09-27 18:57:03 +00001@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{}
Fariborz Jahaniand3952f32007-10-02 20:06:01 +000013@end // expected-warning {{incomplete implementation of class 'INTF'}}
Fariborz Jahanian1e4e82f2007-09-27 18:57:03 +000014
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{}
Fariborz Jahaniand3952f32007-10-02 20:06:01 +000028@end // expected-warning {{incomplete implementation of class 'INTF1'}}
Fariborz Jahanian1e4e82f2007-09-27 18:57:03 +000029
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