summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/objc2-protocol-metadata.m
diff options
context:
space:
mode:
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