1// RUN: %clang_cc1 -triple thumbv7--windows-itanium -fobjc-runtime=ios -emit-llvm -o - %s -Wno-objc-root-class | FileCheck %s 2 3@protocol P 4- (void) method; 5@end 6 7@protocol Q @end 8@protocol R @end 9 10@interface I<P> 11@end 12 13@implementation I 14- (void) method { } 15@end 16 17_Bool f(void) { 18 return @protocol(Q) == @protocol(R); 19} 20 21// CHECK: $"_OBJC_PROTOCOL_$_P" = comdat any 22// CHECK: $"_OBJC_LABEL_PROTOCOL_$_P" = comdat any 23// CHECK: $"_OBJC_PROTOCOL_REFERENCE_$_Q" = comdat any 24// CHECK: $"_OBJC_PROTOCOL_REFERENCE_$_R" = comdat any 25 26// CHECK: @"_OBJC_PROTOCOL_$_P" = {{.*}}, comdat 27// CHECK: @"_OBJC_LABEL_PROTOCOL_$_P" = {{.*}}, comdat 28 29