[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenObjC / debug-info-property-class-instance-same-name.m
blob68423fc07f8acc52efe9a017772e6117435aedee
1 // RUN: %clang_cc1 -S -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) {}