]> granicus.if.org Git - clang/commitdiff
merge protocol-test-1.m -> protocol-test-2.m
authorChris Lattner <sabre@nondot.org>
Sun, 12 Apr 2009 08:46:44 +0000 (08:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Apr 2009 08:46:44 +0000 (08:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68897 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/protocol-test-1.m [deleted file]
test/SemaObjC/protocol-test-2.m

diff --git a/test/SemaObjC/protocol-test-1.m b/test/SemaObjC/protocol-test-1.m
deleted file mode 100644 (file)
index 6ca2bb8..0000000
+++ /dev/null
@@ -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
index 1ccc2de93e37eb7b84f1bd1ffbc319d77fb0b899..9fbdc16759dd31d7ef355e69bbe55208f636a2db 100644 (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