summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/debug-info-objc-property-dwarf5.m
blob: 2b3a86fe399712b3d707d3866cd9df605aa7ddc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -dwarf-version=5 %s -o - | FileCheck %s

@protocol NSObject
@end

@interface NSObject <NSObject> {}
@end

struct Bar {};

@protocol BarProto
@property struct Bar *bar;
@end

@interface Foo <BarProto>
@end

@implementation Foo {}
@synthesize bar = _bar;
- (void)f {}
@end

// CHECK: ![[FOO:[0-9]+]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Foo"

// CHECK: ![[DECL:[0-9]+]] = !DISubprogram(name: "-[Foo setBar:]",
// CHECK-SAME:  scope: ![[FOO]]

// CHECK: distinct !DISubprogram(name: "-[Foo setBar:]",
// CHECK-SAME:  declaration: ![[DECL:[0-9]+]]
OpenPOWER on IntegriCloud