2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2007-12-12 02:34:51 +08:00
|
|
|
|
|
|
|
@protocol MyProto1
|
|
|
|
@optional
|
|
|
|
- (void) FOO;
|
|
|
|
@optional
|
2011-12-14 03:40:34 +08:00
|
|
|
- (void) FOO1;
|
2007-12-12 02:34:51 +08:00
|
|
|
@required
|
|
|
|
- (void) REQ;
|
|
|
|
@optional
|
|
|
|
@end
|
|
|
|
|
|
|
|
@protocol MyProto2 <MyProto1>
|
|
|
|
- (void) FOO2;
|
|
|
|
@optional
|
|
|
|
- (void) FOO3;
|
|
|
|
@end
|