brintos

brintos / llvm-project-archived public Read only

0
0
Text · 619 B · 2b3a86f Raw
30 lines · plain
1// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -dwarf-version=5 %s -o - | FileCheck %s2 3@protocol NSObject4@end5 6@interface NSObject <NSObject> {}7@end8 9struct Bar {};10 11@protocol BarProto12@property struct Bar *bar;13@end14 15@interface Foo <BarProto>16@end17 18@implementation Foo {}19@synthesize bar = _bar;20- (void)f {}21@end22 23// CHECK: ![[FOO:[0-9]+]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Foo"24 25// CHECK: ![[DECL:[0-9]+]] = !DISubprogram(name: "-[Foo setBar:]",26// CHECK-SAME:  scope: ![[FOO]]27 28// CHECK: distinct !DISubprogram(name: "-[Foo setBar:]",29// CHECK-SAME:  declaration: ![[DECL:[0-9]+]]30