[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenObjC / debug-info-objc-property-dwarf5.m
blob9ccd6db9c0a536499bf37fbecdf3da954795e90a
1 // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -debug-info-kind=standalone -dwarf-version=5 %s -o - | FileCheck %s
3 @protocol NSObject
4 @end
6 @interface NSObject <NSObject> {}
7 @end
9 struct Bar {};
11 @protocol BarProto
12 @property struct Bar *bar;
13 @end
15 @interface Foo <BarProto>
16 @end
18 @implementation Foo {}
19 @synthesize bar = _bar;
20 - (void)f {}
21 @end
23 // CHECK: ![[FOO:[0-9]+]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Foo"
25 // CHECK: ![[DECL:[0-9]+]] = !DISubprogram(name: "-[Foo setBar:]",
26 // CHECK-SAME:  scope: ![[FOO]]
28 // CHECK: distinct !DISubprogram(name: "-[Foo setBar:]",
29 // CHECK-SAME:  declaration: ![[DECL:[0-9]+]]