| 1 |
// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -fobjc-runtime=gnustep-2.2 -emit-llvm -o - %s | FileCheck %s |
| 2 |
|
| 3 |
@protocol BaseProtocol |
| 4 |
@end |
| 5 |
|
| 6 |
@protocol ExtendedProtocol |
| 7 |
@end |
| 8 |
|
| 9 |
@interface TestClass <BaseProtocol> |
| 10 |
|
| 11 |
-(void) Meth; |
| 12 |
@end |
| 13 |
|
| 14 |
@interface TestClass () <BaseProtocol, ExtendedProtocol> |
| 15 |
@end |
| 16 |
|
| 17 |
@implementation TestClass |
| 18 |
@end |
| 19 |
|
| 20 |
// Check that we emit metadata for both protocols |
| 21 |
// CHECK: @._OBJC_PROTOCOL_ExtendedProtocol = global |
| 22 |
// CHECK: @._OBJC_PROTOCOL_BaseProtocol = global |
| 23 |
|
| 24 |
// Check that we deduplicate the protocol list |
| 25 |
// CHECK: @.objc_protocol_list{{\.[0-9]*}} = internal global { ptr, i64, [2 x ptr] } |