xref: /llvm-project/clang/test/CodeGenObjC/debug-info-property-class-instance-same-name.m (revision c5de4dd1eab00df76c1a68c5f397304ceacb71f2)
1// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
2
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
13
14@implementation I1
15@synthesize p1;
16@end
17
18void foo(I1 *iptr) {}
19