summaryrefslogtreecommitdiff
path: root/test/Parser/enhanced-proto-1.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/enhanced-proto-1.m')
-rw-r--r--test/Parser/enhanced-proto-1.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Parser/enhanced-proto-1.m b/test/Parser/enhanced-proto-1.m
new file mode 100644
index 000000000000..1f42ec2efbb4
--- /dev/null
+++ b/test/Parser/enhanced-proto-1.m
@@ -0,0 +1,17 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+@protocol MyProto1
+@optional
+- (void) FOO;
+@optional
+- (void) FOO;
+@required
+- (void) REQ;
+@optional
+@end
+
+@protocol MyProto2 <MyProto1>
+- (void) FOO2;
+@optional
+- (void) FOO3;
+@end