refactor a bunch of code:
Check for @end in ParseObjCInterfaceDeclList instead of in each caller
Handle @required and @optional with the same code
Add some fixmes about some apparently objc2 code that is being accepted
in objc1.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57803 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjC/protocol-test-1.m b/test/SemaObjC/protocol-test-1.m
index 6fb28b5..c8e4080 100644
--- a/test/SemaObjC/protocol-test-1.m
+++ b/test/SemaObjC/protocol-test-1.m
@@ -9,11 +9,11 @@
@end
@interface INTF1
-@required // expected-error {{@required may be specified in protocols only}}
+@required // expected-error {{directive may only be specified in protocols only}}
- (int) FooBar;
- (int) FooBar1;
- (int) FooBar2;
-@optional // expected-error {{@optional may be specified in protocols only}}
+@optional // expected-error {{directive may only be specified in protocols only}}
+ (int) C;
- (int)I;