summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/objc2-protocol-metadata.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2015-03-31 22:22:40 +0000
committerFariborz Jahanian <fjahanian@apple.com>2015-03-31 22:22:40 +0000
commit6a9c46bc3f02573c51eb7eaf48872423f18f4745 (patch)
treed1c3b6c6b20936660a618d63a6967410a6ce7183 /clang/test/CodeGenObjC/objc2-protocol-metadata.m
parent6a75d842c9e279ed5e309e7cbc15d9ff1f81ca93 (diff)
downloadbcm5719-llvm-6a9c46bc3f02573c51eb7eaf48872423f18f4745.tar.gz
bcm5719-llvm-6a9c46bc3f02573c51eb7eaf48872423f18f4745.zip
[Objective-C metadata patch]. Patch to allocate one more space for
Protocol objects in OBJC2. rdar://20286356 llvm-svn: 233766
Diffstat (limited to 'clang/test/CodeGenObjC/objc2-protocol-metadata.m')
-rw-r--r--clang/test/CodeGenObjC/objc2-protocol-metadata.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/objc2-protocol-metadata.m b/clang/test/CodeGenObjC/objc2-protocol-metadata.m
new file mode 100644
index 00000000000..191016be851
--- /dev/null
+++ b/clang/test/CodeGenObjC/objc2-protocol-metadata.m
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -emit-llvm -o - %s | FileCheck %s
+// rdar://20286356
+
+@protocol P1
+- InstP;
++ ClsP;
+@end
+
+@interface INTF <P1>
+@end
+
+@implementation INTF
+- InstP { return 0; }
++ ClsP { return 0; }
+@end
+
+// CHECK: %struct._protocol_t = type { i8*, i8*, %struct._objc_protocol_list*, %struct.__method_list_t*, %struct.__method_list_t*, %struct.__method_list_t*, %struct.__method_list_t*, %struct._prop_list_t*, i32, i32, i8**, i8* }
OpenPOWER on IntegriCloud