merge protocol-test-1.m -> protocol-test-2.m

llvm-svn: 68897
This commit is contained in:
Chris Lattner 2009-04-12 08:46:44 +00:00
parent 7a9c6d2973
commit 98b30412ab
2 changed files with 16 additions and 22 deletions

View File

@ -1,20 +0,0 @@
// RUN: clang-cc -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

View File

@ -1,15 +1,29 @@
// RUN: clang-cc -fsyntax-only -verify %s
@interface INTF1 @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
@protocol p1,p2,p3;
@protocol p1;
@protocol PROTO1
- (INTF1<p1>*) meth;
@required
- (int) FooBar;
@optional
- (void) MyMethod1;
+ (int) S;
@end
@protocol PROTO2<p1>
@end