summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/objc2-protocol-metadata.m
blob: 38f723709e0291d5c46f73314f0a740150286cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr }