summaryrefslogtreecommitdiff
path: root/test/SemaObjC/protocol-lookup-2.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/protocol-lookup-2.m')
-rw-r--r--test/SemaObjC/protocol-lookup-2.m23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/SemaObjC/protocol-lookup-2.m b/test/SemaObjC/protocol-lookup-2.m
index 9e8ed8a627b93..90f6db0c84fa5 100644
--- a/test/SemaObjC/protocol-lookup-2.m
+++ b/test/SemaObjC/protocol-lookup-2.m
@@ -32,3 +32,26 @@
}
@end
+
+
+@protocol ProtC
+-document;
+@end
+
+@interface I1 : NSObject
+@end
+
+@interface I1(cat)
+-document;
+@end
+
+@interface I2 : NSObject
+-document;
+@end
+
+@interface I2() <ProtC>
+@end
+
+@implementation I2
+- document { return 0; }
+@end