Skip to content

Commit 5723c78

Browse files
Michael137aokblast
authored andcommitted
[clang][DebugInfo][test] Convert Objective-C property2.m test to check LLVM IR (llvm#165297)
This patch series renames these Objective-C property tests to something more descriptive and adjusts them to check IR. Currently the tests check raw assembly output (not even dwarfdump). Which most likely hid some bugs around property debug-info.
1 parent a6727f4 commit 5723c78

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
2+
3+
// CHECK: ![[BASE_PROP:[0-9]+]] = !DIObjCProperty(name: "base"
4+
// CHECK-SAME: attributes: 2316
5+
// CHECK-SAME: type: ![[P1_TYPE:[0-9]+]]
6+
//
7+
// CHECK: ![[P1_TYPE]] = !DIBasicType(name: "int"
8+
//
9+
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "_customIvar"
10+
// CHECK-SAME: extraData: ![[BASE_PROP]]
11+
12+
@interface C {
13+
int _customIvar;
14+
}
15+
@property int base;
16+
@end
17+
18+
@implementation C
19+
@synthesize base = _customIvar;
20+
@end
21+
22+
void foo(C *cptr) {}

clang/test/DebugInfo/ObjC/property2.m

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)