1// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -dwarf-version=5 %s -o - | FileCheck %s
2
3@protocol NSObject
4@end
5
6@interface NSObject <NSObject> {}
7@end
8
9struct Bar {};
10
11@protocol BarProto
12@property struct Bar *bar;
13@end
14
15@interface Foo <BarProto>
16@end
17
18@implementation Foo {}
19@synthesize bar = _bar;
20- (void)f {}
21@end
22
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