diff options
Diffstat (limited to 'test/CodeGenObjC/protocol-comdat.m')
-rw-r--r-- | test/CodeGenObjC/protocol-comdat.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGenObjC/protocol-comdat.m b/test/CodeGenObjC/protocol-comdat.m new file mode 100644 index 000000000000..65e1b9fa2c82 --- /dev/null +++ b/test/CodeGenObjC/protocol-comdat.m @@ -0,0 +1,20 @@ +// RUN: %clang -cc1 -triple thumbv7--windows-itanium -fobjc-runtime=ios -emit-llvm -o - %s -Wno-objc-root-class | FileCheck %s + +@protocol P +- (void) method; +@end + +@interface I<P> +@end + +@implementation I +- (void) method { } +@end + + +// CHECK: $"\01l_OBJC_PROTOCOL_$_P" = comdat any +// CHECK: $"\01l_OBJC_LABEL_PROTOCOL_$_P" = comdat any + +// CHECK: @"\01l_OBJC_PROTOCOL_$_P" = {{.*}}, comdat +// CHECK: @"\01l_OBJC_LABEL_PROTOCOL_$_P" = {{.*}}, comdat + |