blob: c8e4080c5e3b41bf7d447552169ad8c8d8d6a4bf [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
@protocol PROTO1
@required
- (int) FooBar;
@optional
- (void) MyMethod1;
+ (int) S;
@end
@interface INTF1
@required // expected-error {{directive may only be specified in protocols only}}
- (int) FooBar;
- (int) FooBar1;
- (int) FooBar2;
@optional // expected-error {{directive may only be specified in protocols only}}
+ (int) C;
- (int)I;
@end