blob: fbb01dfb1f797eca39b994033a7e3c6f62989333 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
Fariborz Jahanian4b6df3f2007-10-04 00:22:33 +00002
Fariborz Jahaniand0b01542007-09-27 18:57:03 +00003@interface INTF
4- (void) meth;
5- (void) meth : (int) arg1;
Steve Naroffefe7f362008-02-08 22:06:17 +00006- (int) int_meth;
7+ (int) cls_meth;
8+ (void) cls_meth1 : (int) arg1;
Fariborz Jahaniand0b01542007-09-27 18:57:03 +00009@end
10
Steve Naroffefe7f362008-02-08 22:06:17 +000011@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 Jahaniand0b01542007-09-27 18:57:03 +000012- (void) meth {}
13- (void) meth : (int) arg2{}
14- (void) cls_meth1 : (int) arg2{}
Fariborz Jahanian4b6df3f2007-10-04 00:22:33 +000015@end
Fariborz Jahaniand0b01542007-09-27 18:57:03 +000016
17@interface INTF1
18- (void) meth;
19- (void) meth : (int) arg1;
Steve Naroffefe7f362008-02-08 22:06:17 +000020- (int) int_meth;
21+ (int) cls_meth;
22+ (void) cls_meth1 : (int) arg1;
Fariborz Jahaniand0b01542007-09-27 18:57:03 +000023@end
24
Steve Naroffefe7f362008-02-08 22:06:17 +000025@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 Jahaniand0b01542007-09-27 18:57:03 +000026- (void) meth {}
27- (void) meth : (int) arg2{}
28- (void) cls_meth1 : (int) arg2{}
Fariborz Jahanian4b6df3f2007-10-04 00:22:33 +000029@end
Fariborz Jahaniand0b01542007-09-27 18:57:03 +000030
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