[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGenObjC / debug-info-property-class-instance-same-name.m
blob930544e1f359b8e11e4c5a71c7972bae193ed1ea
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
3 // Both properties should be emitted as having a class and an instance property
4 // with the same name is allowed.
5 @interface I1
6 // CHECK: !DIObjCProperty(name: "p1"
7 // CHECK-SAME:            line: [[@LINE+1]]
8 @property int p1;
9 // CHECK: !DIObjCProperty(name: "p1"
10 // CHECK-SAME:            line: [[@LINE+1]]
11 @property(class) int p1;
12 @end
14 @implementation I1
15 @synthesize p1;
16 @end
18 void foo(I1 *iptr) {}