[cfe-commits] r68897 - in /cfe/trunk/test/SemaObjC: protocol-test-1.m protocol-test-2.m
Chris Lattner
sabre at nondot.org
Sun Apr 12 01:46:45 PDT 2009
Author: lattner
Date: Sun Apr 12 03:46:44 2009
New Revision: 68897
URL: http://llvm.org/viewvc/llvm-project?rev=68897&view=rev
Log:
merge protocol-test-1.m -> protocol-test-2.m
Removed:
cfe/trunk/test/SemaObjC/protocol-test-1.m
Modified:
cfe/trunk/test/SemaObjC/protocol-test-2.m
Removed: cfe/trunk/test/SemaObjC/protocol-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/protocol-test-1.m?rev=68896&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/protocol-test-1.m (original)
+++ cfe/trunk/test/SemaObjC/protocol-test-1.m (removed)
@@ -1,20 +0,0 @@
-// RUN: clang-cc -fsyntax-only -verify %s
-
- at protocol PROTO1
- at required
-- (int) FooBar;
- at optional
-- (void) MyMethod1;
-+ (int) S;
- at end
-
- at interface INTF1
- at required // expected-error {{directive may only be specified in protocols only}}
-- (int) FooBar;
-- (int) FooBar1;
-- (int) FooBar2;
- at optional // expected-error {{directive may only be specified in protocols only}}
-+ (int) C;
-
-- (int)I;
- at end
Modified: cfe/trunk/test/SemaObjC/protocol-test-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/protocol-test-2.m?rev=68897&r1=68896&r2=68897&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/protocol-test-2.m (original)
+++ cfe/trunk/test/SemaObjC/protocol-test-2.m Sun Apr 12 03:46:44 2009
@@ -1,15 +1,29 @@
// RUN: clang-cc -fsyntax-only -verify %s
- at interface INTF1 @end
+ at interface INTF1
+ at required // expected-error {{directive may only be specified in protocols only}}
+- (int) FooBar;
+- (int) FooBar1;
+- (int) FooBar2;
+ at optional // expected-error {{directive may only be specified in protocols only}}
++ (int) C;
+
+- (int)I;
+ at end
@protocol p1,p2,p3;
@protocol p1;
@protocol PROTO1
-- (INTF1<p1>*) meth;
+ at required
+- (int) FooBar;
+ at optional
+- (void) MyMethod1;
++ (int) S;
@end
+
@protocol PROTO2<p1>
@end
More information about the cfe-commits
mailing list