2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -verify -Wno-objc-root-class %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2007-12-12 03:10:26 +08:00
|
|
|
|
|
|
|
@protocol MyProto1
|
|
|
|
@optional
|
|
|
|
- (void) FOO;
|
|
|
|
@optional
|
2011-12-14 03:40:34 +08:00
|
|
|
- (void) FOO1;
|
2007-12-12 03:10:26 +08:00
|
|
|
@optional
|
|
|
|
- (void) REQ;
|
|
|
|
@optional
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MyProto2 <MyProto1>
|
|
|
|
- (void) FOO2;
|
|
|
|
- (void) FOO3;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyProto2
|
|
|
|
- (void) FOO2{}
|
|
|
|
- (void) FOO3{}
|
|
|
|
@end
|