2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only -verify %s
|
2007-10-04 08:22:33 +08:00
|
|
|
|
2007-10-03 00:38:50 +08:00
|
|
|
@interface MyClass1
|
|
|
|
@end
|
|
|
|
|
|
|
|
@protocol P
|
2008-02-09 06:06:17 +08:00
|
|
|
- (void) Pmeth;
|
|
|
|
- (void) Pmeth1;
|
2007-10-03 00:38:50 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MyClass1(CAT) <P>
|
2008-02-09 06:06:17 +08:00
|
|
|
- (void) meth2;
|
2007-10-03 00:38:50 +08:00
|
|
|
@end
|
|
|
|
|
2008-02-09 06:06:17 +08:00
|
|
|
@implementation MyClass1(CAT) // expected-warning {{incomplete implementation}} \
|
|
|
|
expected-warning {{method definition for 'meth2' not found}} \
|
|
|
|
expected-warning {{method definition for 'Pmeth' not found}}
|
2007-10-03 00:38:50 +08:00
|
|
|
- (void) Pmeth1{}
|
2007-10-04 08:22:33 +08:00
|
|
|
@end
|
2007-10-03 00:38:50 +08:00
|
|
|
|
|
|
|
@interface MyClass1(DOG) <P>
|
2008-02-09 06:06:17 +08:00
|
|
|
- (void)ppp;
|
2007-10-03 00:38:50 +08:00
|
|
|
@end
|
|
|
|
|
2008-02-09 06:06:17 +08:00
|
|
|
@implementation MyClass1(DOG) // expected-warning {{incomplete implementation}} \
|
|
|
|
expected-warning {{method definition for 'ppp' not found}} \
|
|
|
|
expected-warning {{method definition for 'Pmeth1' not found}}
|
2007-10-03 00:38:50 +08:00
|
|
|
- (void) Pmeth {}
|
2007-10-04 08:22:33 +08:00
|
|
|
@end
|
2007-10-03 00:38:50 +08:00
|
|
|
|
|
|
|
@implementation MyClass1(CAT1)
|
|
|
|
@end
|