26 lines · plain
1// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -fobjc-runtime=gnustep-2.2 -emit-llvm -o - %s | FileCheck %s2 3@protocol BaseProtocol4@end5 6@protocol ExtendedProtocol7@end8 9@interface TestClass <BaseProtocol>10 11-(void) Meth;12@end13 14@interface TestClass () <BaseProtocol, ExtendedProtocol>15@end16 17@implementation TestClass18@end19 20// Check that we emit metadata for both protocols21// CHECK: @._OBJC_PROTOCOL_ExtendedProtocol = global22// CHECK: @._OBJC_PROTOCOL_BaseProtocol = global23 24// Check that we deduplicate the protocol list25// CHECK: @.objc_protocol_list{{\.[0-9]*}} = internal global { ptr, i64, [2 x ptr] }26