diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2015-03-31 22:22:40 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2015-03-31 22:22:40 +0000 |
commit | 6a9c46bc3f02573c51eb7eaf48872423f18f4745 (patch) | |
tree | d1c3b6c6b20936660a618d63a6967410a6ce7183 /clang/test/CodeGenObjC/objc2-protocol-metadata.m | |
parent | 6a75d842c9e279ed5e309e7cbc15d9ff1f81ca93 (diff) | |
download | bcm5719-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.m | 17 |
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* } |